光標(biāo)定位

創(chuàng)新互聯(lián)成立與2013年,先為涉縣等服務(wù)建站,涉縣等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為涉縣企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問(wèn)題。
01 G 移至最后一行行首
02 nG 移至第n行行首
03 n+ 下移n行,行首
04 n- 上移n行,行首
05 n$ 下移n行(1表示本行),行尾
06 0 所在行行首
07 $ 所在行行尾
08 ^ 所在行首字母
09 h,j,k,l 左移,下移,上移,右移
10 H 當(dāng)前屏幕首行行首
11 M 屏幕顯示文件的中間行行首
12 L 當(dāng)前屏幕最底行行首
linux系統(tǒng)下路由的操作:
查看路由表:
route -n/ip route
添加路由:
route add -host 1.1.1.1/32 gw 172.18.30.45
route add -host 主機(jī)ip地址 gw 下一跳[ip或設(shè)備]
route add -net 10.20.20.0/24 dev eth0
route add -net 網(wǎng)段 gw 下一跳[ip或設(shè)備]
刪除路由:
route del -net 10.20.20.0/24 【刪除網(wǎng)段路由】
route del -host 1.1.1.1? ?【刪除主機(jī)路由】
默認(rèn)網(wǎng)關(guān):
route add default gw 172.18.30.204
route del default gw 172.18.30.204
具體操作:
[root@test1 ~]# ip route
10.10.10.10 via 172.18.30.1 dev eth0
172.18.30.0/24 dev eth0? proto kernel? scope link? src 172.18.30.45
192.168.122.0/24 dev virbr0? proto kernel? scope link? src 192.168.122.1
169.254.0.0/16 dev eth0? scope link? metric 1002
default via 172.18.30.254 dev eth0? proto static
[root@test1 ~]# route
Kernel IP routing table
Destination? ? ?Gateway? ? ? ? ?Genmask? ? ? ? ?Flags Metric Ref? ? Use Iface
bogon? ? ? ? ? ?bogon? ? ? ? ? ?255.255.255.255 UGH? ?0? ? ? 0? ? ? ? 0 eth0
172.18.30.0? ? ?*? ? ? ? ? ? ? ?255.255.255.0? ?U? ? ?0? ? ? 0? ? ? ? 0 eth0
192.168.122.0? ?*? ? ? ? ? ? ? ?255.255.255.0? ?U? ? ?0? ? ? 0? ? ? ? 0 virbr0
link-local? ? ? *? ? ? ? ? ? ? ?255.255.0.0? ? ?U? ? ?1002? ?0? ? ? ? 0 eth0
default? ? ? ? ?bogon? ? ? ? ? ?0.0.0.0? ? ? ? ?UG? ? 0? ? ? 0? ? ? ? 0 eth0
[root@test1 ~]#
[root@test1 ~]# route add -host 1.1.1.1/32 gw 172.18.30.45
[root@test1 ~]# route add -net 10.20.20.0/24 dev eth0
[root@test1 ~]# route del -net 10.20.20.0/24
[root@test1 ~]# route del -host 1.1.1.1
[root@test1 ~]# route add default gw 172.18.30.204
[root@test1 ~]# route del default gw 172.18.30.204
更多l(xiāng)inux知識(shí)建議參考《Linux就該這樣學(xué)》,linux的學(xué)習(xí)需要多巧多練習(xí),加油吧
Cd命令 例如/root/123 這樣的路徑 你現(xiàn)在在/root 想要進(jìn)123就可以 輸入cd /root/123
《Linux就該這么學(xué)》不錯(cuò)的Linux學(xué)習(xí)書(shū)籍 里面各個(gè)命令講解的很清楚
route add -host 3.3.3.1 netmask 255.255.255.0 gateway 5.2.2.2 dev eth1
試試吧!
名稱欄目:linux添加下一跳命令,設(shè)置下一跳的命令
文章源于:http://chinadenli.net/article8/dsgijop.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google、網(wǎng)站設(shè)計(jì)公司、網(wǎng)站排名、響應(yīng)式網(wǎng)站、服務(wù)器托管、網(wǎng)站策劃
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
全網(wǎng)營(yíng)銷(xiāo)推廣知識(shí)