当前位置: 技术问答>linux和unix
有关ifconfig的问题
来源: 互联网 发布时间:2016-06-30
本文导语: 当我ifconfig的时候,出现如下: debian:~# ifconfig br0 Link encap:Ethernet HWaddr 00:15:17:a5:c3:03 inet6 addr: fe80::215:17ff:fea5:c303/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
当我ifconfig的时候,出现如下:
debian:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:15:17:a5:c3:03
inet6 addr: fe80::215:17ff:fea5:c303/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7161 (6.9 KiB) TX bytes:20130 (19.6 KiB)
eth0 Link encap:Ethernet HWaddr 00:15:17:a5:c3:02
inet addr:192.168.1.215 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fea5:c302/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:56426675 errors:0 dropped:0 overruns:0 frame:0
TX packets:104138053 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41011112614 (38.1 GiB) TX bytes:120017754406 (111.7 GiB)
Memory:fdf80000-fdfa0000
eth1 Link encap:Ethernet HWaddr 00:15:17:a5:c3:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdfe0000-fe000000
eth2 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:3e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdea0000-fdec0000
eth3 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:3f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdee0000-fdf00000
eth4 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:d5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdae0000-fdb00000
eth5 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:af
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:8cff:fe0e:fbaf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37362377 errors:0 dropped:0 overruns:0 frame:0
TX packets:421010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53493203236 (49.8 GiB) TX bytes:131637758 (125.5 MiB)
Memory:fd9e0000-fda00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:17339806 errors:0 dropped:0 overruns:0 frame:0
TX packets:17339806 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:124395882052 (115.8 GiB) TX bytes:124395882052 (115.8 GiB)
tap0 Link encap:Ethernet HWaddr 00:ff:e4:78:72:28
inet6 addr: fe80::2ff:e4ff:fe78:7228/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:195 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:116 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:25551 (24.9 KiB) TX bytes:168 (168.0 B)
请问br0和tap0各代表什么意思阿,谢谢!
debian:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:15:17:a5:c3:03
inet6 addr: fe80::215:17ff:fea5:c303/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7161 (6.9 KiB) TX bytes:20130 (19.6 KiB)
eth0 Link encap:Ethernet HWaddr 00:15:17:a5:c3:02
inet addr:192.168.1.215 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::215:17ff:fea5:c302/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:56426675 errors:0 dropped:0 overruns:0 frame:0
TX packets:104138053 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41011112614 (38.1 GiB) TX bytes:120017754406 (111.7 GiB)
Memory:fdf80000-fdfa0000
eth1 Link encap:Ethernet HWaddr 00:15:17:a5:c3:03
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdfe0000-fe000000
eth2 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:3e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdea0000-fdec0000
eth3 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:3f
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdee0000-fdf00000
eth4 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:d5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fdae0000-fdb00000
eth5 Link encap:Ethernet HWaddr 00:24:8c:0e:fb:af
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::224:8cff:fe0e:fbaf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37362377 errors:0 dropped:0 overruns:0 frame:0
TX packets:421010 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:53493203236 (49.8 GiB) TX bytes:131637758 (125.5 MiB)
Memory:fd9e0000-fda00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:17339806 errors:0 dropped:0 overruns:0 frame:0
TX packets:17339806 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:124395882052 (115.8 GiB) TX bytes:124395882052 (115.8 GiB)
tap0 Link encap:Ethernet HWaddr 00:ff:e4:78:72:28
inet6 addr: fe80::2ff:e4ff:fe78:7228/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:195 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:116 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:25551 (24.9 KiB) TX bytes:168 (168.0 B)
请问br0和tap0各代表什么意思阿,谢谢!
|
br0 网桥设备
tap0 tap设备,TUN与TAP是操作系统内核中的虚拟网络设备
tap0 tap设备,TUN与TAP是操作系统内核中的虚拟网络设备
|
ifconfig --help
Usage:
ifconfig [-a] [-v] [-s] [[] ]
[add [/]]
[del [/]]
[[-]broadcast []] [[-]pointopoint []]
[netmask ] [dstaddr ] [tunnel ]
[outfill ] [keepalive ]
[hw ] [metric ] [mtu ]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start ] [io_addr ] [irq ] [media ]
[txqueuelen ]
[[-]dynamic]
[up|down] ...
=Hardware Type.
List of possible hardware types:
loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
strip (Metricom Starmode IP) ash (Ash) ether (Ethernet)
tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
irda (IrLAP) ec (Econet) x25 (generic X.25)
infiniband (InfiniBand)
=Address family. Default: inet
List of possible address families:
unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
ash (Ash) x25 (CCITT X.25)
Usage:
ifconfig [-a] [-v] [-s] [[] ]
[add [/]]
[del [/]]
[[-]broadcast []] [[-]pointopoint []]
[netmask ] [dstaddr ] [tunnel ]
[outfill ] [keepalive ]
[hw ] [metric ] [mtu ]
[[-]trailers] [[-]arp] [[-]allmulti]
[multicast] [[-]promisc]
[mem_start ] [io_addr ] [irq ] [media ]
[txqueuelen ]
[[-]dynamic]
[up|down] ...
=Hardware Type.
List of possible hardware types:
loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP)
slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP)
strip (Metricom Starmode IP) ash (Ash) ether (Ethernet)
tr (16/4 Mbps Token Ring) tr (16/4 Mbps Token Ring (New)) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel)
ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB)
arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device)
sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI)
irda (IrLAP) ec (Econet) x25 (generic X.25)
infiniband (InfiniBand)
=Address family. Default: inet
List of possible address families:
unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6)
ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE)
ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet)
ash (Ash) x25 (CCITT X.25)