- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
ip地址管理 1.顯示ip地址 ip a ip address show ip addr show dev eth0 ip a sh eth0 2.增加刪除地址 ip address add 192.0.2.1/24 dev eth0 ip addr del 192.0.2.2/24 dev eth0 3.顯示接口統計 ip -s link ls eth0 網卡和鏈路配置 4.顯示鏈路 ip link show ip link sh eth0 4.修改接口狀態 ip link set eth0 up ip link s gre01 down 路由表管理 5.顯示路由表 ip route ip ro show dev gre01 6.增加新路由 ip route add 10.2.2.128/27 dev gre01 7.增加默認路由 ip route add default via 192.168.1.1 8.修改默認路由 ip route chg default via 192.168.1.2 9.刪除默認路由 ip route del default隧道配置 10.增加刪除GRE隧道 ip tunnel add gre01 mode gre local 10.1.1.1 remote 20.2.2.1 ttl 255 ip tunnel del gre01 11.IPIP隧道 ip tunl a ipip01 mode ipip local 10.1.1.1 remote 20.2.2.1 ttl 255 12.顯示隧道 ip tunnel show 13.顯示隧道統計 ip -s tunl ls gre01 鄰居和arp表管理 13.查看arp表 ip neigh show 14.手工增加刪除arp項 ip neighbor add 10.2.2.2 dev eth0 ip neigh del 10.2.2.1 dev eth0 socket統計 15.顯示當前監聽 ss -l 15.顯示當前監聽的進程 ss -p #常用命令 ip link show #顯示鏈路 ip addr show #顯示地址(或ifconfig) ip route show #顯示路由(route -n) ip neigh show #顯示arp表(ping 192.168.95.50,如果主機在同一局域網內,直接加到arp表) ip neigh delete 192.168.95.50 dev eth0 #刪除arp條目,條目仍然存在狀態為stale,下次通信需要確認 ip rule show #顯示缺省規則 ip route del default dev eth0 #刪除接口路由 ip route show table local #查看本地靜態路由 ip route show table main #查看直連路由 #添加靜態路由 ip route add 10.0.0.0/24 via 192.168.92.129 ip route add 10.10.10.10 via 192.168.92.129 ip route add 172.31.100.0/24 dev eno16777736 ip route add 172.32.0.2 dev eno16777736 #查看路由表 [root@localhost ~]# ip route show table main#刪除 ip route del 10.0.0.0/24 ip route del 10.10.10.10 ip route del 172.31.100.0/24 ip route del 172.32.0.2#再次查看路由表 [root@localhost ~]# ip route show table main [root@localhost ~]# ip route show table local#添加網卡別名 ip addr add 192.168.0.11/24 dev eno16777736 #查看下網卡,別名沒有產生,而是直接繼承 [root@localhost ~]# ip addr show eno16777736 #添加網卡別名并添加標記 label ip addr add 192.168.1.2 label eno16777736:0 dev eno16777736 #查看下,多了eno16777736:0 ip addr show eno16777736 [root@localhost ~]# ip addr add 192.168.55.191/24 label eth0:1 dev eth0 [root@localhost ~]# ip addr show
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP