TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Series 1 - UK
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 09-14-2006, 05:19 PM   #1
brian114
Registered User
 
Join Date: Jun 2004
Location: Leicestershire
Posts: 6
Gateway problem

Hi,

I've recently added a cachecard to my Tivo and found that there was no gateway set by default so added a line in rc.sysinit.hack (called at the end of rc.sysinit) to add a default gateway each time Tivo boots.

That all worked fine until I tried to get the daily call by network working. I noticed that it would make one successful call and then fail on the next call and I've just discovered that's because before the call route -n shows a gateway set to 192.168.1.1 (correct), after the call the gateway entry has gone!

Any ideas how I can get it to stick?

Thanks,

Brian
brian114 is offline   Reply With Quote
Old 09-15-2006, 01:18 AM   #2
staffie2001uk
Registered User
 
staffie2001uk's Avatar
 
Join Date: Apr 2004
Location: Preston, Lancashire, UK
Posts: 167
You should have set the gateway using the cachecad installation routine, same as setting the TiVo ip address.

Not sure what method you used to add a gateway in rc.sysinit.hack, or why it would be transient.
staffie2001uk is offline   Reply With Quote
Old 09-15-2006, 02:14 AM   #3
brian114
Registered User
 
Join Date: Jun 2004
Location: Leicestershire
Posts: 6
When I used nic_config_tivo it would not 'take' the gateway address I was setting - it was showing 192.168.1.1 and I was originally trying to set it to 192.168.253.1 as that was the subnet I was using. Being unable to change it from 1.1 I reconfigured my home network to match.

nic_config_tivo always shows gateway192.168.1.1
route -n has a line like 0.0.0.0 192.168.1.1 UG after a reboot.
route -n no longer has that line after a daily call, at which point the tivo will obviously only connect to 192.168 addresses and the net daily call fails.

I read in post 2897965 in archive2 about setting the gateway the way I have.
brian114 is offline   Reply With Quote
Old 09-15-2006, 03:39 AM   #4
worm
Damn The Man!
 
worm's Avatar
 
Join Date: Feb 2005
Location: Coldstream (prev. Aberdeen and Malmesbury)
Posts: 159
did you mount the drive rw before changing the gateway?

this caught me out when I did it.
__________________
160GB TiVo | Cachecard |
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

worm is offline   Reply With Quote
Old 09-15-2006, 04:12 AM   #5
brian114
Registered User
 
Join Date: Jun 2004
Location: Leicestershire
Posts: 6
Not explicitly as I think the nic_config_tivo script does that anyway when it starts. The settings for IP address, subnet mask etc. were successfully set.
brian114 is offline   Reply With Quote
Old 09-20-2006, 07:05 AM   #6
Cainam
Tivo Evangelist
 
Join Date: May 2004
Location: Chester-le-Street, UK
Posts: 332
I seem to remember that if, in nic_config_tivo, you configure it as getting your listings over the phone line, it does not matter what you put in the gateway field. it will just revert back to 192.168.1.1 (I wanted it as 0.1), and it does not add the route - n line.

(I had this problem as I did not have broadband when I got the cachecard, I wanted it for unmentionable purposes!)

Try changing the setting back to phone (if it isn't already), and then saving and exiting.

Then go in again, and set it to network, and save and exit.

Finally go in again, and set the gateway address properly.

Long winded, but it should save the gateway address properly....
Cainam is offline   Reply With Quote
Old 09-20-2006, 01:28 PM   #7
groovyclam
Registered User
 
Join Date: Feb 2002
Posts: 428
Brian if you can telnet to the TiVo the quickest and easiest and "correct" way to set it's IP and gateway is to edit the script:

/etc/rc.d/rc.net

you will need an editor executable such as "joe" ftp'd to your TiVo

telet to your TiVo and do the following commands so you can edit the file:

mount -o remount,rw /

cd /etc/rc.d

cp ./rc.net ./rc.net.bak

joe ./rc.net


The joe editor screen will open showing the contents of the script, you will see the line where your TiVo's IP is set and you can edit that to be what you like and you can do the same for the line which sets the gateway.

To quit the joe editor and save the changes type:

Ctrl and K togther
Then press "x"

type the following to see that the file looks like you expect it to:

cat ./rc.net

If it is ballsed up then copy back the backup you made and start again:

cp ./rc.net.bak ./rc.net

joe ./rc.net


When you are happy with the changes set the filesystem back to read only:

sync

mount -o remount,ro /


Don't forget to undo the method you did originally with the rc.sysinit.hack file you made.

Now reboot the TiVo and Bob's your builder.
groovyclam is offline   Reply With Quote
Old 09-21-2006, 05:03 PM   #8
brian114
Registered User
 
Join Date: Jun 2004
Location: Leicestershire
Posts: 6
Thanks to both of you, I have tried your suggestions. Cainam was correct that if you have the daily call set to phone then you do not get the option to define a gateway value if you select change IP etc. in nic_config_tivo. With it set to network you do, so I set it to 192.168.1.1

I have also looked at rc.net as suggested by Groovyclam and this is what it contains:

#
#!/bin/sh
#

if /sbin/insmod -f /lib/modules/turbonet2.o macaddr=00:0B:AD:14:18:29 ; then
export DYNAMIC_NET_DEV=eth0
/sbin/ifconfig eth0 192.168.1.200 netmask 255.255.255.0 up
/sbin/route.tivo add default gw 192.168.1.1 netmask 0.0.0.0
fi


.....which looks exactly right to me.

I then typed route -n and the gateway line was there. Used the remote to tell Tivo to make it's daily call. It made it over th network successfully. I went back to the telnet interface and route -n ow shows no gateway set!

Bizarre eh!
brian114 is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media
(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 02:00 AM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |