Support
Center
 IP Address settings in Second NIC (ETH1)
Solution

IP Address settings in Second NIC (ETH1)

Introduction

Below is a sample ifcfg-eth1 file which is what RedHat based Linux systems (such as Centos, Trixbox, Elastix, PBX in a Flash, etc.) use to configure network cards. this file should be saved as

Information

This file can be generated with netconfig

netconfig -d eth1

/etc/sysconfig/network-scripts/ifcfg


The following example is for eth1 so it would be:

/etc/sysconfig/network-scripts/ifcfg-eth1

##DEVICE NAME SHOULD MATCH PHYSICAL DEVICE ASSIGNMENT.
DEVICE=eth1
##BOOTPROTO TO SET STATIC UNCOMMENT NONE AND COMMENT OUT DHCP
#BOOTPROTO=dhcp
BOOTPROTO=none

#SHOULD THIS CARD LOAD AT BOOT.. I THINK IT SHOULD
ONBOOT=yes
##IF YOUR NOT USING DHCP UNCOMMENT AND SET THE VALUES BELOW
##BROADCAST MATCHES UP WITH WITH YOUR SUBNET MASK IF ITS A 0 IN YOU SUBNET IT IS 255 HERE
##IF IT IS A 255 IN YOUR SUBNET THEN THIS VALUE MATCHES THAT OCTET OF THE IP. BROADCAST=192.168.1.255
##WHERE EVER THERE IS A 0 IN YOUR SUBNET PUT A 0 HERE NETWORK=192.168.1.0
## YOUR SUBNET MASK NETMASK=255.255.255.0
## YOUR STATIC IP IPADDR=192.168.1.254
## CAN NON ROOT USERS CONTROL THIS DEVICE PROBABLY SHOULDNT....
USERCTL=no




Keywords

Network, Ip Address, Static, 2nd NIC




 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options