Cisco——DHCP+RIP|8月更文挑战

109 阅读3分钟

这是我参与8月更文挑战的第25天,活动详情查看:8月更文挑战

要求:

  • PC3所在网络地址为202.学号.97.0/24。
  • Switch0 为一公司的主干交换机。该公司在电信提供商申请的网段为202.199.1.0/24,该公司有A、B、C三个部门,A部门100人,B、C部门各50人,A、B、C三个部门属于三个不同的局域网。
  • PC0为A部门的一台主机、PC4为B部门的一台主机,PC5为C部门的一台主机。
  • PC1所在的网络地址为202.学号.2.0/24。
  • PC2所在的网络地址为202.学号.3.0/24。
  • 在Router3所连接的交换机上配置DHCP服务器。并配置🧍‍各个网络设备,使各网段主机能够互通。

全视频操作(点击此处跳转至Bilibili)

IP:

PC0:
202.学号.1.2
255.255.255.128
202.学号.1.1

PC1:
202.学号.2.2
255.255.255.0
202.学号.2.1

PC2:
202.学号.3.2
255.255.255.0
202.学号.3.1

PC3:
202.学号.97.2
255.255.255.0
202.学号.97.1

PC4:
202.学号.1.130
255.255.255.192
202.学号.1.129

PC5:
202.学号.1.194
255.255.255.192
202.学号.1.193

R0——R1:202.199.100.0/24
R0——R2:202.199.101.0/24
R2——R3:202.199.102.0/24
3560S0——R1:202.199.103.0/24
3560S0——R3:202.199.104.0/24

接口: R0;R2;R3:断电硬件插入NM-2E2W

R0(Fa0/1)_S2(Fa0/24)
R0(Fa0/0)_R1(Fa0/0)
R0(Eth1/0)_R2(Eth1/0)
R2(Fa0/1)_S0(Fa0/24)
R2(Fa0/0)_R3(Fa0/0)
R3(Fa0/1)_S1(Fa0/24)
R3(Eth1/0)_3560S0(Fa0/23)
R1(Fa0/1)_3560S0(Fa0/24)
3560S0(Fa0/1)_S3(Fa0/24)

PC0_S0(Fa0/1)
PC4_S0(Fa0/11)
PC5_S0(Fa0/21)

S0:

ena
conf
vlan 100
e
vlan 200
e
vlan 300
e
interface range fastEtherenet 0/1-10
switchport access vlan 100
no shotdown
interface range fastEtherenet 0/11-20
switchport access vlan 200
no shotdown
interface range fastEtherenet 0/21-23
switchport access vlan 300
no shotdown
interface fastEtherenet 0/24
switchport mode trunk
no shotdown
ex

S3:

ena
conf
vlan 400
e
interface range fastEtherenet 0/1-10
switchport access vlan 400
no shotdown
ex
interface fastEtherenet 0/24
switchport mode trunk
no shotdown
ex

3560S0:

ena
conf
vlan 400
ex
interface vlan 400
ip address 202.学号.3.1 255.255.255.0
no shutdown
e
interface fastEthernet 0/1
switchport mode trunk
e
interface fastEthernet 0/24
switchport mode trunk
no switchport
ip address 202.199.103.2 255.255.255.0
no shutdown
e
interface fastEthernet 0/23
switchport mode trunk
no switchport
ip address 202.199.104.2 255.255.255.0
no shutdown
e
router rip
network 202.学号.3.0
network 202.199.103.0
network 202.199.104.0
end

R0:

ena
conf
interface fastEthernet 0/1
ip address 202.学号.97.1 255.255.255.0
no shutdown 
e
interface fastEthernet 0/0
ip address 202.199.100.1 255.255.255.0
no shutdown 
e
interface Ethernet 1/0
ip address 202.199.101.1 255.255.255.0
no shutdown 
e
router rip
network 202.学号.97.0
network 202.199.100.0
network 202.199.101.0
end

R1:

ena
conf
interface fastEthernet 0/1
ip address 202.199.100.2 255.255.255.0
no shutdown 
e
interface fastEthernet 0/0
ip address 202.199.103.1 255.255.255.0
no shutdown 
e
router rip
network 202.199.100.0
network 202.199.103.0
end

R2:

ena
conf
interface fastEthernet 0/1.1
encapsulation dot1Q 100
ip address 202.学号.1.1 255.255.255.128
no shutdown
ex
interface fastEthernet 0/1.2
encapsulation dot1Q 200
ip address 202.学号.1.129 255.255.255.192
no shutdown
ex
interface fastEthernet 0/1.3
encapsulation dot1Q 300
ip address 202.学号.1.193 255.255.255.192
no shutdown
ex
interface fastEthernet 0/0
ip address 202.199.102.1 255.255.255.0
no shutdown 
ex
interface Ethernet 1/0
ip address 202.199.101.2 255.255.255.0
no shutdown 
ex
interface fastEthernet 0/1
no shutdown 
ex
router rip
network 202.学号.1.128
network 202.学号.1.192
network 202.199.101.0
network 202.199.102.0
end

R3:

ena
conf
interface fastEthernet 0/1
ip address 202.学号.2.1 255.255.255.0
no shutdown 
ex
interface fastEthernet 0/0
ip address 202.199.102.2 255.255.255.0
no shutdown 
ex
interface Ethernet 1/0
ip address 202.199.104.1 255.255.255.0
no shutdown 
ex
ip dhcp pool LAN
network 202.学号.2.0 255.255.255.0
default-router 202.学号.2.1
dns-server 202.学号.2.2
ex
router rip
network 202.学号.2.0
network 202.199.102.0
network 202.199.104.0
end