lo0: flags=8049 mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
lo0表示loopback回环地址,就是常说的127.0.0.1的本机地址;
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
//software Network Interface 软件网络接口
stf0: flags=1<UP> mtu 1280
nd6 options=209<PERFORMNUD,IFDISABLED,DAD>
6to4 tunnel interface ipv6->ipv4通道接口
6to4隧道和6in4隧道都是用于ipv4到ipv6过渡时期的策略,可以使得主机或站点在其ISP(宽带运营商)并未提供IPV6服务时仍然获得访问IPV6网络的能力。但如果主机本身本不支持ipv6协议,那么隧道机制也不能使其访问ipv6。
二者的共同点是它们都通过封装的形式使用IPV4报文头对IPV6报文进行封装,并且都有封装和解封装的过程。且二者都需要一个公网IPV4地址。
不同点是:
1.IANA分配给6to4隧道的TLA部分是0x0010,和前三位001(可汇聚全球单播地址)拼接起来是2002,而分配给6in4的是0x0001,拼接后是2001。所以当看到2002:开头的IPV6地址就是6to4隧道的地址,而2001:开头的则是6in4的地址。
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400<CHANNEL_IO>
ether dc:a9:04:90:64:08
inet6 fe80::bb:28d9:f87f:a606%en0 prefixlen 64 secured scopeid 0x4
inet 192.168.10.171 netmask 0xffffff00 broadcast 192.168.10.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=460<TSO4,TSO6,CHANNEL_IO>
ether 82:c1:7b:03:b0:01
media: autoselect <full-duplex>
status: inactive
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
options=460<TSO4,TSO6,CHANNEL_IO>
ether 82:c1:7b:03:b0:00
media: autoselect <full-duplex>
status: inactive
en31: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=6407<RXCSUM,TXCSUM,VLAN_MTU,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
ether 00:e0:4c:36:08:05
nd6 options=201<PERFORMNUD,DAD>
media: autoselect (none)
status: inactive
以太网0 有线网卡 :执行命令行:networksetup -listallhardwareports
Hardware Port: USB 10/100 LAN
Device: en31
Ethernet Address: 00:e0:4c:36:08:05
Hardware Port: Wi-Fi
Device: en0
Ethernet Address: dc:a9:04:90:64:08
Hardware Port: Bluetooth PAN
Device: en3
Ethernet Address: dc:a9:04:84:2e:58
Hardware Port: Thunderbolt 1
Device: en2
Ethernet Address: 82:c1:7b:03:b0:01
Hardware Port: Thunderbolt 2
Device: en1
Ethernet Address: 82:c1:7b:03:b0:00
Hardware Port: Thunderbolt Bridge
Device: bridge0
Ethernet Address: 82:c1:7b:03:b0:00
其他参数解释
UP代表网卡是开启状态
RUNNING 代表这个网卡是处于网络连接状态
MULTICAST:代表着喝网卡是支持组播的
mtu 1500:代表这个网卡最大的单元传输为1500字节
inet 192.168.44.163 netmask 0xffffff00 broadcast 192.168.44.255:
inet 192.168.44.163 网卡的IP地址为192.168.44.163
broadcast 192.168.44.255 网卡的广播地址为192.168.44.255
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether 82:c1:7b:03:b0:00
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x0
member: en1 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 7 priority 0 path cost 0
member: en2 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 6 priority 0 path cost 0
nd6 options=201<PERFORMNUD,DAD>
media: <unknown type>
status: inactive
//bridge0: 第2层桥接
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
options=400<CHANNEL_IO>
ether 0e:a9:04:90:64:08
media: autoselect
status: inactive
Point-to-Point 协议
awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1484
options=400<CHANNEL_IO>
ether b6:2b:d3:b0:b2:40
inet6 fe80::b42b:d3ff:feb0:b240%awdl0 prefixlen 64 scopeid 0xb
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
airdrop peer to peer(一种mesh network), apple airdrop设备特有
llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400<CHANNEL_IO>
ether b6:2b:d3:b0:b2:40
inet6 fe80::b42b:d3ff:feb0:b240%llw0 prefixlen 64 scopeid 0xc
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
//未知不明白
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
inet6 fe80::1a5f:cfd8:983a:fea0%utun0 prefixlen 64 scopeid 0xd
nd6 options=201<PERFORMNUD,DAD>
utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
inet6 fe80::1538:d763:411e:7fde%utun1 prefixlen 64 scopeid 0xe
nd6 options=201<PERFORMNUD,DAD>
utun0/utun1 vpn相关