Compatible Support Forums: Setting eth1 adresses....

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting eth1 adresses....

#1 User is offline   souldreamer 

  • journeyman
  • Group: Members
  • Posts: 60
  • Joined: 09-March 03

Posted 14 March 2003 - 02:47 PM

How do i sign IP 192.168.0.1 and mask 255.255.255.0 permanentely to eth1 in linux?
0

#2 User is offline   EgoWarrior 

  • stranger
  • Group: Members
  • Posts: 20
  • Joined: 26-May 02

Posted 14 March 2003 - 03:42 PM

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.
0

#3 User is offline   souldreamer 

  • journeyman
  • Group: Members
  • Posts: 60
  • Joined: 09-March 03

Posted 15 March 2003 - 02:32 AM

Thanks pal wink
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users