Cisco——DHCP+RIP

在这里插入图片描述

要求:

  • 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)
CiscoDHCP+RIP动态路由.pkt(点击下载动态路由实验)

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

效果图:

在这里插入图片描述

  • 15
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GodOuO

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值