思科试题
发布网友
发布时间:2022-03-04 09:25
我来回答
共2个回答
热心网友
时间:2022-03-04 10:55
写个配置清单给你,看看可行不可行:
三层交换机
enable
vlan database
vlan 10 /创建vlan 10 pc1 pc2 :192.168.10.0 gw:192.168.10.1
vlan 20 /创建vlan 20 pc3 pc4 :192.168.20.0 gw:192.168.20.1
vlan 30 /创建vlan 30 s1 s2 :192.168.30.0 gw:192.168.30.1
exit
interface range fastethernet0/4 -5
switchport mode access
switchport access vlan 10
exit
interface range fastethernet0/6 -7
switchport mode access
switchport access vlan 20
exit
interface range fastethernet0/2 -3
switchport mode access
switchport access vlan 30
exit
interface fastethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
no switchport
ip address 172.168.2.1 255.255.255.0
no shutdown
exit
interface vlan 10
ip address 192.168.10.1 255.255.255.0
exit
interface vlan 20
ip address 192.168.20.1 255.255.255.0
exit
interface vlan 30
ip address 192.168.30.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 fastethernet0/1
2811路由器
enable
config terminal
interface fastethernet0/0
ip address 172.168.2.2 255.255.255.0
ip nat inside /定义为内网口
no shutdown
interface fastethernet0/1
ip address 202.202.202.202 255.255.255.0
ip nat ouside /定义为*口
no shutdown
exit
ip nat source static 192.168.251 202.202.202.202 / 将内网ip静态映射到公网ip
ip route 0.0.0.0 0.0.0.0 fastethernet0/0 /缺省路由
ip route 192.168.1.0 255.255.255.0 fastethernet0/1
1841路由器
enable
config terminal
interface fastethernet0/0
ip address 202.202.202.203 255.255.255.0
no shutdown
interface fastethernet0/1
ip address 192.168.1.1 255.255.255.0
no shutdown
exit
no routing /关闭路由功能,注意:pt模拟器不支持此命令
ip default-gateway 202.202.202.202 /配置缺省网关 ,注意:pt模拟器不支持此命令
HTTP Server:192.168.30.251
DHCP Server:192.168.30.250,DHCP服务自己搞,不用命令
PC5:192.168.1.10
回答完毕
上面的命令行(排除中文和注释),如果没什么错误,可当脚本使用,可以直接复制到命令。
热心网友
时间:2022-03-04 12:13
R2不做任何配置,你的pc5永远不可能访问到http。你这些要求都很简单,自己学习着配吧。这是作业还是? 哦,不会是面试题吧