December 11, 2017, 12:32:31 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: 1 NIC, 2 IPs  (Read 1794 times)

Offline mfaisalkh

  • Tux Awared
  • **
  • Posts: 44
1 NIC, 2 IPs
« on: June 24, 2004, 08:23:19 AM »
Dear Frendz,

How can i assgned 2 ip addresses on one NIC.

Offline Kallol

  • New Member
  • Posts: 1
1 NIC, 2 IPs
« Reply #1 on: June 27, 2004, 11:44:36 AM »
just use the following commands
#ifconfig <interface>:n <ip-address|name> up

#ifconfig eth0 192.168.1.1 up
#ifconfig eth0:1 192.168.1.2 up
#ifconfig eth0:2 192.168.1.3 up