Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Network/Internet Questions regarding network or Internet configuration and use in SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 30-Aug-2006, 19:41
elm
Guest
 
Posts: n/a
Default

Hello,

I want SuSE to automatically remember some routes I always have to feed it when it restarts. How do I do that?

example:
route add -net 134.135.2.0 gw 136.131.1.22 netmask 255.255.255.0 dev eth0


In MS DOS I can just "route add -p" for persistant. man route didn't help much (I loathe man pages - the way they are written is overly geeky and 87% of the time I haven't got a clue what they're on about. And they are so DULL to read).

Any help greatly appreciated!
Thanks.
  #2 (permalink)  
Old 30-Aug-2006, 20:20
ken_yap
Guest
 
Posts: n/a
Default

Quote:
Hello,

I want SuSE to automatically remember some routes I always have to feed it when it restarts. How do I do that?

example:
route add -net 134.135.2.0 gw 136.131.1.22 netmask 255.255.255.0 dev eth0
In MS DOS I can just "route add -p" for persistant. man route didn't help much (I loathe man pages - the way they are written is overly geeky and 87% of the time I haven't got a clue what they're on about. And they are so DULL to read).

Any help greatly appreciated!
Thanks.
[/b]
Yast -> Network Devices -> Network card -> Edit -> Routing

You can also edit /etc/sysconfig/network/routes if you prefer the CLI.
  #3 (permalink)  
Old 10-Sep-2006, 23:06
elm
Guest
 
Posts: n/a
Default

Quote:
Yast -> Network Devices -> Network card -> Edit -> Routing

You can also edit /etc/sysconfig/network/routes if you prefer the CLI.
[/b]
in the 'routes' file, do I just add:

Code:
136.132.1.0 gw 136.130.1.50 netmask 255.255.255.0 dev eth0
or anything more than that?

Thanks!
  #4 (permalink)  
Old 11-Sep-2006, 00:06
ken_yap
Guest
 
Posts: n/a
Default

Quote:
in the 'routes' file, do I just add:

Code:
136.132.1.0 gw 136.130.1.50 netmask 255.255.255.0 dev eth0
or anything more than that?

Thanks!
[/b]
No, it has to be in the format expected by YaST. Use YaST if you are not sure.
  #5 (permalink)  
Old 28-Nov-2007, 04:05
agismaniax
Guest
 
Posts: n/a
Default

i've changed my /etc/sysconfig/network/routes in opensuse 10.2 like this:

172.16.100.0 172.16.4.252 255.255.255.0 eth0

but, i'm using DHCP on my opensuse.

everytime i restart the network device via knetwork manager, i still can't see additional routing in my linux.
is that any workarround to route add with dhcp client on?
 

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2