Weblog entry #5 for ashirvani
#5
assigning IP and set gateway
Posted by ashirvani on Mon 21 Jan 2008 at 13:52
ifconfig <interface> <ip> netmask <netmask>
assigning an IP to given interface with given netmask.
route add default gw <ip> <interface>
set ip as gateway for given interface.
assigning an IP to given interface with given netmask.
route add default gw <ip> <interface>
set ip as gateway for given interface.
Comments on this Entry
Posted by figjam (203.89.xx.xx) on Mon 21 Jan 2008 at 21:42
[ Send Message | View figjam's Scratchpad | View Weblogs ]
[ Send Message | View figjam's Scratchpad | View Weblogs ]
Or...
sudo apt-get install iproute
ip addresss add / dev
ip route add default via dev
[ Parent | Reply to this comment ]
Posted by figjam (203.89.xx.xx) on Mon 21 Jan 2008 at 21:46
[ Send Message | View figjam's Scratchpad | View Weblogs ]
[ Send Message | View figjam's Scratchpad | View Weblogs ]
Blast! Note to self... watch which formatting you use when there are angle brackets. That should have been:
ip addresss add <ip>/<netmask> dev <interface>
ip route add default via <gateway_ip> dev <interface>
ip addresss add <ip>/<netmask> dev <interface>
ip route add default via <gateway_ip> dev <interface>
[ Parent | Reply to this comment ]