source: debwrt/trunk/debian/rootfs/files/etc/hosts @ 245

Last change on this file since 245 was 245, checked in by stappers, 8 years ago

Head Quarters, your development host

root@debwrt:~# cat /etc/hosts
127.0.0.1 localhost.local localhost
192.168.1.1 debwrt.lan debwrt
192.168.1.2 hq.lan hq # Head Quarters, your development host
root@debwrt:~# ping -w 3 hq
PING hq.lan (192.168.1.2) 56(84) bytes of data.
64 bytes from hq.lan (192.168.1.2): icmp_req=1 ttl=64 time=0.293 ms
64 bytes from hq.lan (192.168.1.2): icmp_req=2 ttl=64 time=0.247 ms
64 bytes from hq.lan (192.168.1.2): icmp_req=3 ttl=64 time=0.250 ms
--- hq.lan ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.247/0.263/0.293/0.024 ms
root@debwrt:~# route add default gw hq
root@debwrt:~# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default hq.lan 0.0.0.0 UG 0 0 0 eth0
root@debwrt:~#

File size: 127 bytes
Line 
1127.0.0.1       localhost.local localhost
2192.168.1.1     debwrt.lan      debwrt
3192.168.1.2     hq.lan hq # Head Quarters, your development host
Note: See TracBrowser for help on using the repository browser.