實驗名稱:層次化配置方法(組網需求)(一)

 
 
一、 實驗目標

1)、熟悉Cisco設備基礎信息及密碼配置

2)、實習那PCping通路由器局域網接口並且能telnet到路由器。

3)、實現路由器之間互相ping通且能互相telnet

 

二、 網絡拓撲圖

 

 
 
 
三、  實驗步驟
 
)RT5

==========

基本信息配置

Router>enable     //進入特權模式

Router#configure terminal

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

Router(config)#hostname RT5     //配置主機名

RT5(config)#no ip domain-lookup    //禁用域名查找

RT5(config)#enable password ip     //配置特權密碼爲ip,密碼後不能加空格,否則空格也作爲密碼。

RT5(config)#line console 0    //進入Console 口線路模式

RT5(config-line)#logging synchronous    //信息顯示自動換行

RT5(config-line)#password ip  // 

RT5(config-line)#login    //配置登錄線路密碼認證

RT5(config-line)#exit

RT5(config)#line aux 0     //進入AUX口線路模式

RT5(config-line)#password bluefox

RT5(config-line)#logging synchronous

RT5(config-line)#password bluefox

RT5(config-line)#login

RT5(config-line)#exit

RT5(config)#line vty 0 4    //進入VTY線路模式

RT5(config-line)#password bluefox

RT5(config-line)#login

RT5(config-line)#^Z    //ctrl-z退到特權模式

RT5#

 

RT5#show run    //查看當前運行配置

Building configuration...

 

Current configuration : 826 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname RT5

!

boot-start-marker

boot-end-marker

!

enable password ip

!

no aaa new-model

!

resource policy

!

memory-size iomem 5

ip subnet-zero

!

!

ip cef   

no ip dhcp use vrf connected

!        

!        

no ip domain lookup

no ftp-server write-enable

!

!

!

!

interface Ethernet0/0

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/1

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/2

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

ip http server

ip classless

!

!

!

!

!

control-plane

!

!

line con 0

 password ip

 logging synchronous

 login

line aux 0

 password bluefox

 logging synchronous

 login

line vty 0 4

 password bluefox

 login

!

end

 

==========

 

(4)RT6

==========

基本信息配置

Router>enable

Router#configure terminal

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

Router(config)#hostname RT6

RT6(config)#no ip domain-lookup

RT6(config)#enable password ip

RT6(config)#line console 0

RT6(config-line)#logging synchronous

RT6(config-line)#password ip

RT6(config-line)#login

RT6(config-line)#exit

RT6(config)#line aux 0

RT6(config-line)#password bluefox

RT6(config-line)#logging synchronous

RT6(config-line)#password bluefox

RT6(config-line)#login

RT6(config-line)#exit

RT6(config)#line vty 0 4

RT6(config-line)#password bluefox

RT6(config-line)#login

RT6(config-line)#^Z

RT6#

 

RT6#show run

Building configuration...

 

Current configuration : 830 bytes

!

version 12.3

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname RT6

!

boot-start-marker

boot-end-marker

!

enable password ip

!

no aaa new-model

!

resource policy

!

memory-size iomem 5

ip subnet-zero

!

!

ip cef   

no ip dhcp use vrf connected

!

!

no ip domain lookup

no ftp-server write-enable

!

!

!

!

interface Ethernet0/0

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/1

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/2

 no ip address

 shutdown

 half-duplex

!

interface Ethernet0/3

 no ip address

 shutdown

 half-duplex

!

ip http server

ip classless

!

!

!

!

!

control-plane

!

!

line con 0

 password bluefox

 logging synchronous

 login

line aux 0

 password bluefox

 logging synchronous

 login

line vty 0 4

 password bluefox

 login

!

end

 

==========

 

(5) RT5 Console 密碼測試

==========

 

User Access Verification

 

Password:

RT5>enable

Password:

RT5#

==========

 

(6) RT6 Console 密碼測試

==========

 

User Access Verification

 

Password:  

RT6>enable

Password:

RT6#

==========

 

(7) RT5的局域網接口調試

==========

1.

RT5的局域網接口配置

 

RT5(config)#interface ethernet 0/0    //進入接口模式

RT5(config-if)#ip address 192.168.10.1 255.255.255.0

RT5(config-if)#no shutdown    //打開接口

RT5(config-if)#end

RT5#show ip interface brief

Interface                  IP-Address      OK? Method Status                Protocol

Ethernet0/0                192.168.10.1   YES manual up                    up

 

 

 

2.

PC1 網卡IP地址配置

  在模擬PC上配置

IP192.168.10.10 24 192.168.10.1

3.

PC1 RT5 的連通測試

 

4.

RT5 Telnet密碼測試

==========

T5#telnet 192.168.10.1   // PC1 Telnet RT RT5

User Access Verification     //Telnet登陸認證提示

 

Password:       //請輸入VTY線路密碼:bluefox

RT5>enable

Password:    // 請輸入enable特權密碼:ip

RT5#

 

 

 

 

RT6的局域網接口調試

==========

RT6(config)#interface ethernet 0/0

RT6(config-if)#ip address 192.168.18.1 255.255.255.0

RT6(config-if)#no shutdown

RT6(config-if)#end

RT6#show ip interface brief

Interface                  IP-Address      OK? Method Status                Protocol

Ethernet0/0                192.168.18.1    YES manual up                    up    

==========

 

 

 

RT5--RT6互連鏈路調試

==========

 

RT5(config)#interface ethernet 0/1

RT5(config-if)#ip address 192.168.1.1 255.255.255.252

RT5(config-if)#no shutdown

RT5(config-if)#exit

RT5#show run

RT5#show ip interface brief

 

如果物理層administratively down ,是接口沒有no shutdown

如果物理層up,數據鏈路層down,一般爲物理鏈路故障,應檢查物理鏈路是否連接好。

 

 

RT6(config)#interface ethernet 0/1

RT6(config-if)#ip address 192.168.1.2 255.255.255.252

RT6(config-if)#no shutdown

RT6(config-if)#exit

RT6#show run

RT6#show ip interface brief

 

 

(3)RT5-RT6鏈路連通測試

 

RT5#ping 192.168.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms

RT5#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 32/52/68 ms

RT5#RT5#show run

 

 

 

RT6#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

RT6#ping 192.168.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 40/60/84 ms

 

 

 

 

(4)RT5 Telnet RT6測試

 

RT5#telnet 192.168.1.2     // RT5 Telnet RT6

Trying 192.168.1.2 ... Open

ser Access Verification     //Telnet登陸認證提示

 

Password:       //請輸入VTY線路密碼:bluefox

RT6>enable

Password:    // 請輸入enable特權密碼:ip

RT6#

 

==========

 

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章