网络配置:综合路由实验1 - 考察单臂路由、静态路由知识点 下载本文

1.5倍;首行缩进:2字符;题目字体:3号黑体,单倍行距;章节字体:4号黑体,单倍行距。

interface FastEthernet0/0.20 encapsulation dot1Q 20

ip address 192.168.2.1 255.255.255.0 !

interface FastEthernet1/0 no ip address duplex auto speed auto shutdown !

interface Serial2/0

ip address 192.168.3.1 255.255.255.0 !

interface Serial3/0 no ip address shutdown !

interface FastEthernet4/0 no ip address shutdown !

interface FastEthernet5/0 no ip address shutdown !

ip classless

ip route 0.0.0.0 0.0.0.0 192.168.3.2 !

line con 0 line vty 0 4 login ! ! ! end

四、R2的配置

R2#show running-config Building configuration...

Current configuration : 852 bytes !

version 12.2

no service timestamps log datetime msec

- 5 -

1.5倍;首行缩进:2字符;题目字体:3号黑体,单倍行距;章节字体:4号黑体,单倍行距。

no service timestamps debug datetime msec no service password-encryption !

hostname R2 ! ! !

interface FastEthernet0/0

ip address 192.168.4.1 255.255.255.0 duplex auto speed auto !

interface FastEthernet1/0

ip address 192.168.6.1 255.255.255.0 duplex auto speed auto !

interface Serial2/0

ip address 192.168.3.2 255.255.255.0 clock rate 64000 !

interface Serial3/0 no ip address shutdown !

interface FastEthernet4/0 no ip address shutdown !

interface FastEthernet5/0 no ip address shutdown !

ip classless

ip route 192.168.5.0 255.255.255.0 192.168.4.2 ip route 192.168.7.0 255.255.255.0 192.168.6.2 ip route 192.168.1.0 255.255.255.0 192.168.3.1 ip route 192.168.2.0 255.255.255.0 192.168.3.1 ! !! !

line con 0 line vty 0 4 login ! !

- 6 -

1.5倍;首行缩进:2字符;题目字体:3号黑体,单倍行距;章节字体:4号黑体,单倍行距。

! end

四、R3的配置

R3#show running-config Building configuration...

Current configuration : 869 bytes !

version 12.2

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R3 !

interface FastEthernet0/0

ip address 192.168.4.2 255.255.255.0 duplex auto speed auto !

interface FastEthernet1/0

ip address 192.168.5.1 255.255.255.0 duplex auto speed auto !

interface Serial2/0 no ip address shutdown !

interface Serial3/0 no ip address shutdown !

interface FastEthernet4/0 no ip address shutdown !

interface FastEthernet5/0 no ip address shutdown !

ip classless

- 7 -

1.5倍;首行缩进:2字符;题目字体:3号黑体,单倍行距;章节字体:4号黑体,单倍行距。

ip route 192.168.1.0 255.255.255.0 192.168.4.1 ip route 192.168.2.0 255.255.255.0 192.168.4.1 ip route 192.168.3.0 255.255.255.0 192.168.4.1 ip route 192.168.6.0 255.255.255.0 192.168.4.1 ip route 192.168.7.0 255.255.255.0 192.168.4.1 ! ! !

line con 0 line vty 0 4 login ! ! ! end

五、R4的配置

R4#show running-config Building configuration...

Current configuration : 869 bytes !

version 12.2

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname R4 ! ! !

interface FastEthernet0/0

ip address 192.168.7.1 255.255.255.0 duplex auto speed auto !

interface FastEthernet1/0

ip address 192.168.6.2 255.255.255.0 duplex auto speed auto !

interface Serial2/0 no ip address shutdown !

- 8 -