Setup IP and Netmask
(Interface eth0, IP = 192.168.1.1, Netmask = 255.255.255.0)
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
Setup Default Gateway
(Interface eth0, Gateway IP = 192.168.1.254)
route add default gw 192.168.1.254 eth0
Setup DNS Server and Search Domain
vi /etc/resolv.conf
nameserver 8.8.8.8
search csie.ntu.edu.tw
No comments:
Post a Comment