eNsp——DHCP+RIP动态路由|8月更文挑战

584 阅读3分钟

这是我参与8月更文挑战的第26天,活动详情查看: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服务器。并配置🧍‍各个网络设备,使各网段主机能够互通。

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
R2——S0:202.199.103.0/24
R1——S3:202.199.104.0/24
R3——R1:202.199.105.0/24

接口: R0;R1;R2;R3:插入2SA

R0(GE0/0/1)_PC3(Eth0/0/1)
R0(Serial4/0/1)_R1(Serial4/0/0)
R0(Serial4/0/0)_R2(Serial4/0/1)
R2(GE0/0/1)_S0(GE0/0/24)
R2(Serial4/0/0)_R3(Serial4/0/1)
R3(GE0/0/1)_PC1(Eth0/0/1)
R3(Serial4/0/0)_R1(Serial4/0/1)
R1(GE0/0/1)_S3(GE0/0/24)

PC0_S0(Eth0/0/1)
PC4_S0(Eth0/0/11)
PC5_S0(Eth0/0/21)

S0:

sys
vlan batch 100 200 300
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 100
q
interface GigabitEthernet 0/0/11
port link-type access
port default vlan 200
q
interface GigabitEthernet 0/0/21
port link-type access
port default vlan 300
q
interface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan all
q
interface Vlanif 100
ip address 202.学号.1.1 255.255.255.128
q
interface Vlanif 200
ip address 202.学号.1.129 255.255.255.192
q
interface Vlanif 300
ip address 202.学号.1.193 255.255.255.192
q
interface Vlanif 1
ip address 202.199.103.2 255.255.255.0
q
rip
network 202.学号.1.0
network 202.199.103.0
q
q
save
y

S3:

sys
vlan batch 400
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 400
q
interface GigabitEthernet 0/0/24
port link-type trunk
port trunk allow-pass vlan all
q
interface Vlanif 400
ip address 202.学号.3.1 255.255.255.0
q
interface Vlanif 1
ip address 202.199.104.2 255.255.255.0
q
rip
network 202.学号.3.0
network 202.199.104.0
q
q
save
y

R0:

sys
interface GigabitEthernet 0/0/1
ip address 202.学号.97.1 255.255.255.0
q
interface Serial 4/0/0
ip address 202.199.101.1 255.255.255.0
q
interface Serial 4/0/1
ip address 202.199.100.1 255.255.255.0
q
rip
network 202.学号.97.0
network 202.199.100.0
network 202.199.101.0
q
q
save
y

R1:

sys
interface GigabitEthernet 0/0/1
ip address 202.199.104.1 255.255.255.0
q
interface Serial 4/0/1
ip address 202.199.105.1 255.255.255.0
q
interface Serial 4/0/0
ip address 202.199.100.2 255.255.255.0
q
rip
network 202.199.100.0
network 202.199.104.0
network 202.199.105.0
q
q
save
y

R2:

sys
interface GigabitEthernet 0/0/1
ip address 202.199.103.1 255.255.255.128
q
interface Serial 4/0/1
ip address 202.199.101.2 255.255.255.0
q
interface Serial 4/0/0
ip address 202.199.102.1 255.255.255.0
q
rip
network 202.199.101.0
network 202.199.102.0
network 202.199.103.0
q
q
save
y

R3:

sys
interface GigabitEthernet 0/0/1
ip address 202.学号.2.1 255.255.255.0
q
interface Serial 4/0/0	
ip address 202.199.105.2 255.255.255.0
q
interface Serial 4/0/1	
ip address 202.199.102.2 255.255.255.0
q
ip pool LAN
gateway-list 202.学号.2.1
network 202.学号.2.0 mask 255.255.255.0
lease day 30
dns-list 202.学号.2.2
q
rip
network 202.学号.2.0
network 202.199.102.0
network 202.199.105.0
q
q
save
y