老大,我的按你的腳本刷了怎么不行啊。是不是我的網(wǎng)卡不對?
root@n200:/ # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast state UP qlen 1000
link/ether 74:97:81:29:d5:94 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.12/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::7697:81ff:fe29:d594/64 scope link
valid_lft forever preferred_lft forever
3: tunl0: <NOARP> mtu 0 qdisc noop state DOWN
link/ipip 0.0.0.0 brd 0.0.0.0
4: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
link/sit 0.0.0.0 brd 0.0.0.0
5: ip6tnl0: <NOARP> mtu 1452 qdisc noop state DOWN
link/tunnel6 :: brd ::
6: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1452 qdisc mq state DOWN qlen 1000
link/ether 34:c3:d2:4c:2b:55 brd ff:ff:ff:ff:ff:ff
7: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1452 qdisc mq state DOWN qlen 1000
link/ether 36:c3:d2:4c:2b:55 brd ff:ff:ff:ff:ff:ff
9: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast state UNKNOWN qlen 3
link/ppp
inet 10.228.173.215 peer 10.228.160.1/32 scope global ppp0
valid_lft forever preferred_lft forever
root@n200:/ # |