Map Ip

Taking care of your Linux box.

Map Ip

Postby mfaisalkh » Wed Jun 16, 2004 9:30 pm

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
mfaisalkh
Havaldaar
 
Posts: 124
Joined: Wed Mar 17, 2004 4:05 pm
Location: Karachi

Postby funaki » Thu Jun 17, 2004 1:52 am

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|
funaki
Lance Naik
 
Posts: 27
Joined: Thu Jun 03, 2004 1:39 am
Location: A Block away from hell


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron