2个回答
展开全部
你好!
这实验,简单!假设三层交换机的fa0/1到fa0/6分别连接pc0至pc5,那么请参考如下命令:
enable
vlan database
vlan 10
vlan 11
exit
configure terminal
ip routing
interface vlan 10
ip address 192.168.10.1 255.255.255.0
interface vlan 11
ip address 192.168.11.1 255.255.255.0
exit
interface range fastethernet0/1 -3
switchport mode access
switchport access vlan 10
exit
interface range fastethernet0/4 -6
switchport mode access
switchport access vlan 11
exit
如果不想手工设置PC的IP地址,那么用DHCP好了。回到全局配置模式下:
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-1.1.1.1
exit
ip dhcp pool vlan11
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-1.1.1.1
exit
ip dhcp e 192.168.10.1
ip dhcp e 192.168.11.1
就这样子。
满意请采纳!
这实验,简单!假设三层交换机的fa0/1到fa0/6分别连接pc0至pc5,那么请参考如下命令:
enable
vlan database
vlan 10
vlan 11
exit
configure terminal
ip routing
interface vlan 10
ip address 192.168.10.1 255.255.255.0
interface vlan 11
ip address 192.168.11.1 255.255.255.0
exit
interface range fastethernet0/1 -3
switchport mode access
switchport access vlan 10
exit
interface range fastethernet0/4 -6
switchport mode access
switchport access vlan 11
exit
如果不想手工设置PC的IP地址,那么用DHCP好了。回到全局配置模式下:
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-1.1.1.1
exit
ip dhcp pool vlan11
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-1.1.1.1
exit
ip dhcp e 192.168.10.1
ip dhcp e 192.168.11.1
就这样子。
满意请采纳!
Storm代理
2023-06-05 广告
2023-06-05 广告
StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询