Changeset 245


Ignore:
Timestamp:
Apr 23, 2011, 1:39:53 PM (7 years ago)
Author:
stappers
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.