The Suse configuration is bit different than other Linux flavours . Instead of creating additional interface configuration files
for alias IP’s like the ifcfg-ethX:X type files, you simply append new
entry with the new IP address. Here
is what ifcfg-eth1 looks like on this system with the existing NIC
and IP.
1. Be root user to perform this activity .
2. Change your current directory to the /etc/sysconfig/network directory with the command:
4. To create the new interface, you will edit ifcfg-eth-id-00:50:56:b8:7d:64. The file should contain lines similar to:
BOOTPROTO='static'
BROADCAST='192.168.11.255'
IPADDR='192.168.11.41'
MTU=''
NETMASK='255.255.252.0'
NETWORK='192.168.11.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='B35A.weGuQ9ywYPF'
_nm_name='bus-pci-0000:02:00.0'
5. To add additional IP address on this machine ,you need to append a new configuration block using the same label. Add a new block and name it BB and same way you can create multiple blogs for adding multiple IP addresses ............
IPADDR_BB=’x.x.x.x′
NETMASK_SN=’xxx.xxx.xxx.x′
6. After adding new address, save the file and restart network services to activate the new IP address.
1. Be root user to perform this activity .
2. Change your current directory to the /etc/sysconfig/network directory with the command:
cd /etc/sysconfig/network
3. Check for existing network adapters with the command :
ls ifcfg-eth*
and look for a file named similar to ifcfg-eth-id-00:50:56:b8:7d:64 The
colon-delimited letters & digits at the end are MAC address of network adapter.4. To create the new interface, you will edit ifcfg-eth-id-00:50:56:b8:7d:64. The file should contain lines similar to:
BOOTPROTO='static'
BROADCAST='192.168.11.255'
IPADDR='192.168.11.41'
MTU=''
NETMASK='255.255.252.0'
NETWORK='192.168.11.0'
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='B35A.weGuQ9ywYPF'
_nm_name='bus-pci-0000:02:00.0'
5. To add additional IP address on this machine ,you need to append a new configuration block using the same label. Add a new block and name it BB and same way you can create multiple blogs for adding multiple IP addresses ............
IPADDR_BB=’x.x.x.x′
NETMASK_SN=’xxx.xxx.xxx.x′
6. After adding new address, save the file and restart network services to activate the new IP address.
/etc/init.d/network restart
No comments:
Post a Comment