# vi /etc/network/interfaces
# man interfaces
# man resolver หรือ man resolv.conf ก็ได้
# vi /etc/network/interfaces
auto eth0 iface eth0 inet dhcp
$ ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:08:a1:91:08:a4 inet addr:158.108.213.126 Bcast:158.108.213.127 Mask:255.255.255.128 inet6 addr: fe80::208:a1ff:fe91:8a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:130315 errors:0 dropped:0 overruns:0 frame:0 TX packets:71707 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:40944583 (40.9 MB) TX bytes:10263714 (10.2 MB) Interrupt:17 Base address:0x9000
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 158.108.213.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 158.108.213.1 0.0.0.0 UG 100 0 0 eth0
auto lo iface lo inet loopback iface eth0 inet static address 158.108.213.126 netmask 255.255.255.128 gateway 158.108.213.1 auto eth0
# vi /etc/resolv.conf domain thaigrid.or.th search thaigrid.or.th nameserver 158.108.2.67 nameserver 158.108.2.70
dig www.google.com
# aptitude install openssh-server openssh-client
# man sshd_config