Setting eth1 adresses....

This is a discussion about Setting eth1 adresses.... in the Linux Networking category; 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 , . Last reply 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 in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Mar 14
Created
Mar 15
Last Response
0
Likes
<1 minute
Read Time
User User
Users

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.