Debian下IPv6地址的配置

点击:[]

◆ 配置

vi /etc/network/interfaces

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface

# automatically added when upgrading

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet6 static

address 2001:da8:2:10d::2

netmask 64

up route -A inet6 add default gw 2001:da8:2:10d::1 dev $IFACE

iface eth0 inet static

address 58.1.4.74

netmask 255.255.255.0

up route add default gw 58.1.4.1 dev $IFACE

关闭