ifconfig
I am working on a lab. I've been trying to figure out the syntax for an ifconfig command that sets the IP address of the interface eth0 to 128.143.2.3/16 with broadcast address 128.143.255.255
I wouldn't have asked this if I hadn't spent so much time, hopefully someone will know. I'm at the end of my rope. Melissa |
Try this....
/sbin/ifconfig -a eth0 128.143.2.3 netmask 255.255.0.0 broadcast 128.143.255.255 If you want add the gateway, use this... /sbin/route add default gw ( put the router address here ) |
any other thoughts?
|
type :
man ifconfig as all the info you want is in there.. i was actually just looking at it :confused: |
All times are GMT -5. The time now is 07:23 PM. |