Ubuntu Networking 설정, IPv6 비활성화

|


- 2015.02.24

 


1. Network 설정


# vi /etc/network/interfaces
  9 auto eth0
 10 iface eth0 inet static
 11 address 192.168.1.40
 12 #network 192.168.1.0                // 적지 않아도 무관
 13 netmask 255.255.255.0
 14 #broadcast 192.168.1.255         // 적지 않아도 무관
 15 gateway 192.168.1.254
 16 dns-nameservers 168.126.63.1 168.126.63.2 8.8.8.8


eth0 재시작
    # ifdown eth0 && ifup eth0

 

 

 

 

2. ipv6 비활성화


ipv6 비활성화 전의 상황

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:15:5d:64:e6:44
             inet addr:192.168.1.40  Bcast:192.168.1.255  Mask:255.255.255.0
             inet6 addr: fe80::215:5dff:fe64:e644/64 Scope:Link
             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
             RX packets:1347 errors:0 dropped:0 overruns:0 frame:0
             TX packets:944 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:153312 (153.3 KB)  TX bytes:135864 (135.8 KB)

 

비활성화

# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
# sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1

 


ipv6이 비활성화 된 것을 확인할 수 있다.

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:15:5d:64:e6:44
             inet addr:192.168.1.40  Bcast:192.168.1.255  Mask:255.255.255.0
             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
             RX packets:1394 errors:0 dropped:0 overruns:0 frame:0
             TX packets:967 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000
             RX bytes:157778 (157.7 KB)  TX bytes:139346 (139.3 KB)

 

 

 

And