- 积分
- 81
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2019-3-17
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
![](https://cdn.hh010.com/static/image/common/ico_lz.png)
楼主 |
发表于 2019-4-13 10:40:09
|
显示全部楼层
具体配置:
三层交换:
enable
configure terminal
hostname SW1
vtp domain ccie
vtp password 123
vtp mode server
vtp pruning
ip routing
vlan 10
vlan 20
vlan 20
vlan 30
vlan 30
vlan 40
vlan 40
int range e0/0-3,e1/0-3,e2/0-3,e3/0-3
switchport trunk encapsulation dot1q
switchport mode trunk
ex
int vlan 10
ip add 192.168.10.254 255.255.255.0
no shut
int vlan 20
ip add 192.168.20.254 255.255.255.0
no shut
int vlan 30
ip add 192.168.30.254 255.255.255.0
no shut
int vlan 40
ip add 192.168.40.254 255.255.255.0
no shut
spanning-tree mode mst
spanning-tree mst configuration
name 123
instance 1 vlan 10,20
instance 2 vlan 30,40
spanning-tree mst 1 root primary
spanning-tree mst 2 root secondary
ip dhcp pool 10
netw 192.168.10.0 255.255.255.0
default-router 192.168.10.254
ex
ip dhcp pool 20
netw 192.168.20.0 255.255.255.0
default-router 192.168.20.254
ex
ip dhcp pool 30
netw 192.168.30.0 255.255.255.0
default-router 192.168.30.254
ex
ip dhcp pool 40
netw 192.168.40.0 255.255.255.0
default-router 192.168.40.254
ex
二层交换:
enable
configure terminal
vtp domain ccie
vtp password 123
vtp mode client
spanning-tree portfast default
int range e0/0-3
sw mo ac
sw ac vlan 10
PC:
en
conf t
no ip routing
int e0/0
no shut
ip add dhcp
|
沙发
2019-4-13 10:40:09
回复(0)
收起回复
|