cirros 修改网卡地址

cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 172.16.0.254
        netmask 255.255.0.0

auto eth1
iface eth1 inet manual
        up ifconfig $IFACE 0.0.0.0 up
        down ifconfig $IFACE down

auto br-ex
iface br-ex inet static
        address 192.168.8.20
        netmask 255.255.255.0
        gateway 192.168.8.1
        dns-nameservers 8.8.8.8

你可能感兴趣的:(cirros 修改网卡地址)