日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

思科路由基本配置

發布時間:2025/6/15 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 思科路由基本配置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一臺路由器和兩臺PC機

實現PC機遠程連接路由器終端


R1#conf t

Enter configuration commands, one per line. ?End with CNTL/Z.

R1(config)#hostname router1

router1(config)#enable password 123456

router1(config)#line vty 0 4

router1(config-line)#password 123.com

router1(config-line)#login

router1(config-line)#exit

router1(config)#int e0/0

router1(config-if)#ip add

router1(config-if)#ip address 192.168.10.1 255.255.255.0

router1(config-if)#no sh

router1(config-if)#int e0/1

router1(config-if)#

*Mar ?1 00:03:01.931: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up

*Mar ?1 00:03:02.931: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up

router1(config-if)#ip add

router1(config-if)#ip address 172.16.10.1 255.255.255.0

router1(config-if)#no sh

router1(config-if)#do sh

*Mar ?1 00:03:17.319: %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to up

*Mar ?1 00:03:18.319: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/1, changed state to up

router1(config-if)#do sh ip int br

Interface ? ? ? ? ? ? ? ? ?IP-Address ? ? ?OK? Method Status ? ? ? ? ? ? ? ?Protocol

Ethernet0/0 ? ? ? ? ? ? ? ?192.168.10.1 ? ?YES manual up ? ? ? ? ? ? ? ? ? ?up

Ethernet0/1 ? ? ? ? ? ? ? ?172.16.10.1 ? ? YES manual up ? ? ? ? ? ? ? ? ? ?up

Ethernet0/2 ? ? ? ? ? ? ? ?unassigned ? ? ?YES unset ?administratively down down

Ethernet0/3 ? ? ? ? ? ? ? ?unassigned ? ? ?YES unset ?administratively down down

router1(config-if)#

router1#show running-config

Building configuration...


Current configuration : 926 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname router1

!

boot-start-marker

boot-end-marker

!

enable password 123456

!

no aaa new-model

memory-size iomem 5

no ip icmp rate-limit unreachable

ip tcp synwait-time 5

!

!

ip cef

no ip domain lookup

!


interface Ethernet0/0

?ip address 192.168.10.1 255.255.255.0

?half-duplex

!

interface Ethernet0/1

?ip address 172.16.10.1 255.255.255.0

?half-duplex

!

interface Ethernet0/2

?no ip address

?shutdown

?half-duplex

!

interface Ethernet0/3

?no ip address

?shutdown

?half-duplex

!

no ip http server

no ip http secure-server

!

!

control-plane

!

!

line con 0

?exec-timeout 0 0

?privilege level 15

?logging synchronous

line aux 0

?exec-timeout 0 0

?privilege level 15

?logging synchronous

line vty 0 4

?password 123.com

?login

!

!

end

用PC1和PC2互相ping通

用PC1和PC2遠程連接路由器終端

在PC1上telnet 192.168.10.1 ? 輸入密碼進入用戶模式,再次輸入密碼進入特權模式

在PC2上telnet 172.16.10.1 ??輸入密碼進入用戶模式,再次輸入密碼進入特權模式

轉載于:https://blog.51cto.com/guochenyong/1971678

總結

以上是生活随笔為你收集整理的思科路由基本配置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。