1樓:it技術阿輝
linux系統最簡單的靜態網路配置
linux怎麼新增靜態路由?
2樓:十六個指環
用route命令,如 新增路由192.168.1.1 route add default gw 192.168.1.1
linux怎麼新增靜態路由?
linux怎麼新增靜態路由
3樓:逃樂醉樂美樂
linux系統下路由的操作:
檢視路由表:
route -n/ip route
新增路由:
route add -host 1.1.1.1/32 gw 172.18.30.45
route add -net 10.20.20.0/24 dev eth0
route add -net 網段 gw 下一跳[ip或裝置]
刪除路由:
route del -net 10.20.20.0/24 【刪除網段路由】
route del -host 1.1.1.1 【刪除主機路由】
預設閘道器:
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
linux如何新增印表機,linux如何新增印表機
linux桌面下可照如下步驟新增印表機 請您點選左下角圖示 即開始按鈕 從系統主選單中選中 系統設定 在其中選 在左側的列表中,選擇 新建印表機 然後在右側選擇 新建印表機 按鈕,之後 進入選擇印表機的介面,這時,系統就會自動掃瞄出當前網路中可用的印表機,將結果顯示在左側列表中。從列出的可用印表機中...
如何檢視當前linux系統版本,linux如何檢視系統版本
介紹怎麼檢視linux系統版本 linux如何檢視系統版本 介紹怎麼檢視linux系統版本 方法一 命令 uname a 作用 檢視系統核心版本號及系統名稱 方法二 命令 cat proc version作用 檢視目錄 proc 下version的資訊,也可以得到當前系統的核心版本號及系統名稱 un...
linux系統如何永久改變系統時間
centos系統,必須同時修改系統時間和硬體時間,才可以保證修改有效,單純的使用date命令修改系統時間,是立即生效,重啟後系統還原。具體操作如下 1.date 2.hwclock show 3.如果硬體時間和系統時間不同,那就對硬體的時間進行修改4.hwclock set date 014 12 ...
linux如何關閉防火牆,LINUX系統怎麼關閉防火牆
1 重啟後生效 開啟 chkconfig iptables on 關閉 chkconfig iptables off 2 即時生效,重啟後失效 開啟 service iptables start 關閉 service iptables stop 需要說明的是對於linux下的其它服務都可以用以上命令...
如何刪除linux系統,安裝,如何刪除linux系統,安裝win
用軟碟通燒錄到u盤或者行動硬碟中插上電腦 然後開機立即按下f11 然後就可以按照win7的提示一路狂奔了 com.cn 54 160 539953.html 你去看看這個教程吧,你下乙個毒大win7完全安裝版的別用ghost版的,怎麼設定啟動項貼子裡面也有我就不多說了。看不懂可以聯絡我。如果使用li...