반응형

자신의 로컬 IP 정보 아래와 같을 때

링크-로컬 IPv6 주소 . . . . : fe80::d48e:20d9:283f:9d80%15
IPv4 주소 . . . . . . . . . : 192.168.35.144
서브넷 마스크 . . . . . . . : 255.255.255.0
기본 게이트웨이 . . . . . . : 192.168.35.1

vi /etc/network/interfaces
auto eth0
iface eth0 inet static // or iface eth0 inet dhcp
address 192.168.35.100
subnet 255.255.255.0
gateway 192.168.35.1
network 192.168.35.0
broadcast 192.168.35.255

위와 같이 설정 했을 때 인터넷이 안된다면

ifconfig eth0 [바꿀 ip] netmask [바꿀 netmask] up
route add default gw [게이트웨이 ip]
echo nameserver 8.8.8.8 > /etc/resolv.conf
service networking restart
반응형

+ Recent posts