容器里 跟书上有区别
[root@node-10-120-13-236 ~]# kubectl exec -it tmp-shell-6dc5cd5b9d-mgmvw — sh
/ # ip a
1: lo:
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
3: eth0@if17:
link/ether e2:b3:95:e8:ee:2a brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.95.33/32 scope global eth0
valid_lft forever preferred_lft forever
4: tunl0@NONE:
link/ipip 0.0.0.0 brd 0.0.0.0
/ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 169.254.1.1 0.0.0.0 UG 0 0 0 eth0
169.254.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
/ #
书上是 cali0 网卡