Setting eth1 adresses....

How do i sign IP 192. 168. 0. 1 and mask 255. 255. 255. 0 permanentely to eth1 in linux?.

Linux Networking 361 This topic was started by ,


data/avatar/default/avatar35.webp

60 Posts
Location -
Joined 2003-03-09
How do i sign IP 192.168.0.1 and mask 255.255.255.0 permanentely to eth1 in linux?

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar37.webp

20 Posts
Location -
Joined 2002-05-26
This probably depends on your distro, but for my Red Hat box you want to edit the file in :
 
/etc/sysconfig/network-scripts
 
called "ifcfg-eth1" and make it so it reads:
 
 
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
ONBOOT=yes
 
 
That should work for you, it should bring the device up on boot, and assign it that address,
 
Hope this helps.