中文字幕亚洲第一精品|精品国产免费一区二区|久久婷婷五月六月综合版|中文字幕熟妇久久久人妻|久久综合精品国产一区无码|国产成人精品永久免费视频|午夜亚洲国产精品理论片a级|久久精品一区二区三区无码护土

 訪問手機(jī)版  

Linux常用命令|Linux培訓(xùn)學(xué)習(xí)|考試認(rèn)證|工資待遇與招聘,認(rèn)準(zhǔn)超級(jí)網(wǎng)工!

招聘|合作 登陸|注冊(cè)

網(wǎng)絡(luò)工程師培訓(xùn)

當(dāng)前位置:網(wǎng)絡(luò)工程師 > 技術(shù)課程 > linux > 熱點(diǎn)關(guān)注 > linux常用命令

【linux】ip命令

時(shí)間:2019-07-24

linux命令大全 關(guān)機(jī)_linux命令大全hds_linux命令大全

man page: show / manipulate routing,deviceslinux命令大全, policy routing and tunnels

格式:

ip [ OPTIONS ] OBJECT { COMMAND | help }

命令格式:

ip a # 或者 ip addr
ip -4 a # Only show TCP/IP IPv4
ip -6 a # Only show TCP/IP IPv6
#following only show etho info
ip a show eth0 
ip a list eth0
ip a show dev eth0
ip link ls up # Only show runing interfaces

示例:

[jiangjian@localhost shell]$ ip a #或者 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:17:4a:8d brd ff:ff:ff:ff:ff:ff
    inet 192.168.119.90/24 brd 192.168.119.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::f1fb:43f:7ada:57a4/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:ac:bd:ce brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
       valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
    link/ether 52:54:00:ac:bd:ce brd ff:ff:ff:ff:ff:ff
[jiangjian@localhost shell]$ 
 上一個(gè)教程:linux腳本加入延時(shí)等待