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 03-Jun-2008, 12:26
katkota
Guest
 
Posts: n/a
Unhappy

Folks;
How can i change the destination & Genmask in SUSE (please see below)
(I couldn't find Yast and i tried to find "route.conf" file but i couldn't find it any where)
Here's the route command results:

Destination Gateway Genmask Flags Metric Ref Use Iface
14.104.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.157.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
14.0.0.0 14.104.1.254 255.0.0.0 UG 0 0 0 eth0
default 192.168.157.1 0.0.0.0 UG 0 0 0 eth1


I'm trying to change the destination & Genmask in the second line "eth1" to be 192.168.156.0 & 255.255.255.254

Any help on how to do that using the command line would be greatly appreciated
  #2 (permalink)  
Old 03-Jun-2008, 15:06
ken_yap
Guest
 
Posts: n/a
Default

It's in the config for the device. You can do it with YaST or edit /etc/sysconfig/network/ifcfg-eth1. It's an implied route that why you won't find it in the route file.
  #3 (permalink)  
Old 04-Jun-2008, 12:46
katkota
Guest
 
Posts: n/a
Default

I did try to do that but i couldn't get it to work, i think i'm writing the command to make the changes wrong.
Also; after editing /etc/sysconfig/network/ifcfg-eth1 file, what service or daemon do i need to restart so my changes take affect?

Here's my existing /etc/sysconfig/network/ifcfg-eth1 file & i don't see Destination or Genmask

BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.157.101'
MTU=''
NAME=''
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
  #4 (permalink)  
Old 04-Jun-2008, 17:08
ken_yap
Guest
 
Posts: n/a
Default

Change the netmask, then restart the network.

Or edit the interface netmask using YaST.
 

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