六月丁香五月婷婷,丁香五月婷婷网,欧美激情网站,日本护士xxxx,禁止18岁天天操夜夜操,18岁禁止1000免费,国产福利无码一区色费

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 網(wǎng)絡(luò)知識 > 路由器 > 路由器設(shè)置 > cisco思科 > cisco路由器設(shè)置網(wǎng)關(guān)

cisco路由器設(shè)置網(wǎng)關(guān)

時間: 春健736 分享

cisco路由器設(shè)置網(wǎng)關(guān)

  有網(wǎng)友這么問小編“cisco路由器如何設(shè)置網(wǎng)關(guān)?”,學(xué)習(xí)啦小編在網(wǎng)上搜索了一些資料,供大家參考。

  Cisco路由器默認(rèn)路由的命令為:

  ip route 0.0.0.0 0.0.0.0 X.X.X.X

  其中0.0.0.0 0.0.0.0匹配所有路由條目,X.X.X.X 應(yīng)配置為下一跳ip地址。默認(rèn)路由后面還可以加很多參數(shù)設(shè)置,如下一跳接口,優(yōu)先值等,在命令后鍵入?可以查看具體參數(shù)命令。

  網(wǎng)關(guān)設(shè)置命令為:

  default gateway IP地址

  cisco路由器端口描述命令

  Router(config-if)#description def-main

  Router(config-if)#description def-mack

  cisco路由器不進(jìn)行地址解析

  no ip domain-lookupcisco

  路由器長時間不自動退出當(dāng)前配置模式

  Router(config)#line console 0

  Router(config-line)#exec-timeout 0

  cisco路由器設(shè)置網(wǎng)關(guān)具體操作

  Router#show run

  Building configuration...

  Current configuration : 380 bytes

  !

  version 12.4

  no service password-encryption

  !

  hostname Router

  !

  !

  !

  !

  !

  ip ssh version 1

  !

  !

  interface FastEthernet0/0

  ip address 192.168.1.2 255.255.255.0

  duplex auto speed auto shutdown

  !

  interface FastEthernet0/1

  no ip address

  duplex auto speed auto shutdown

  !

  interface Vlan1

  no ip addres

  s shutdown

  !

  ip classless

  !

  !

  !

  !

  !

  line con 0line vty 0 4

  login

  !

  !

  end

  Router#

  2.修改接口ip地址(重新配置會覆蓋原來的配置)

  Router#

  Router#conf tEnter configuration commands, one per line. End with CNTL/Z.

  Router(config)#inter fa 0/0

  Router(config-if)#ip addr 192.168.0.2 255.255.255.0

  Router(config)#end

  %SYS-5-CONFIG_I: Configured from console by console

  Router#show running-config

  Building configuration...Current configuration : 380 bytes

  !

  version 12.4

  no service password-encryption

  !

  hostname Router

  !

  !

  !

  !

  !

  ip ssh version 1

  !

  !

  interface FastEthernet0/0

  ip address 192.168.0.2 255.255.255.0

  duplex auto speed auto shutdown

  !

  Router#

  以上命令均需config t 進(jìn)入全局模式后鍵入。

  以上內(nèi)容來自互聯(lián)網(wǎng),希望您能喜歡。

556337