Map Ip

Taking care of your Linux box.
Post Reply
mfaisalkh
Havaldaar
Posts: 124
Joined: Wed Mar 17, 2004 4:05 pm
Location: Karachi

Map Ip

Post by mfaisalkh »

I have a only single NIC & its address is 192.168.0.1.
Now i want to assigned another IP on this NIC.
How can i do this.
plz tell me step-by-step giude
funaki
Lance Naik
Posts: 27
Joined: Thu Jun 03, 2004 1:39 am
Location: A Block away from hell

Post by funaki »

you can do this by adding a child adapter or simply IP Aliasing. First list your ethernet adapters with ifconfig command.
now su over to root or if you are already root just type this in console

ifconfig eth0:0 192.168.0.22 netmask 255.255.255.0 up

what the command will do is make a virtual or child adapter naming it etho:0 with an ip address of 192.168.0.22 netmask of 255.255.255.0 and will bring the state of the card to up.

for more help you can type man ifconfig for help with the command. :wink:
Funaki
Image
AMD 3400+|2GBRAM|ATI9800xt|120GB hdd x2|
Intel 3.2GHZ|2GBRAM|Nvidia FX5900| 200GBhdd x2|
Post Reply