Adding IP address and default gateway is rather straight forward as long as the interface is loaded. To see whether the interface is loaded, issue the command ifconfig –a
You should see something like the following…
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask 0
ether 0:6:4f:47:76:1e
In this case, we will be adding the IP address and subnet mask to rtls0 along with the default gateway.
IP Address: 192.168.1.60
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Here is how its done…
bash-3.00# ifconfig rtls0 192.168.1.60 netmask 255.255.255.0 up
bash-3.00# route add default 192.168.1.1
add net default: gateway 192.168.1.1
bash-3.00# ping 4.2.2.2
4.2.2.2 is alive
Success! We can now ping a WAN IP! and here is the new output of ifconfig -a
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.1.60 netmask ffffff00 broadcast 192.168.1.255
ether 0:6:4f:47:76:1e
Popularity: 15% [?]
You Should Also Check Out This Post:
- Wordpress Find and Replac String
- How to do an IOS Upgrade via TFTP
- How Reliable is your Hard Disk?
- CCDE Design Track Certification
- Adding Nameservers on Sun Solaris
More Active Posts:
- Make BisonCam work on Windows Vista (92)
- 301 Redirect WordPress Posts To New Domain (16)
- Disabling livecall.exe on Windows Live Messenger (WLM) (14)
- Live Messenger - "Show what I'm listening to" Doesn't work (13)
- Hydrogen Powered Car (7)
- AdobeUpdater.exe CPU Resource Hog (5)
- How to gain ROOT access to a Linux Box within 10 Seconds (4)
- TechForums Update (3)
- Google Maps Directions New York To London (2)
- Perfect Email System (2)



My name is Nish Vamadevan, I live in London. I’m a Network Systems Administrator, and Freelance IT Consultant. I’d like to think of myself and a creative and a resourceful person when it’s come to Computers and Technology.
I have been working in the freelance IT sector for over 6 years and have done various Network Deployments, System Administration and Building, maintaining, managing websites for Small / Medium companies..
Apparently, Microsoft has given all these fatures for free…
Check out the following link for more info.
http://www.microsoft.com/presspass/press/2007/may07/05-06WLHotmailLaunchPR.mspx