1.基本拓扑如下:

 

2.分公司光模块交换机具体配置

en
conf t
hostname xxx
enable password xxx
no ip domain-lookup
line vty 0 4
password xxx
login
exit

int vlan 1
no sh
ip add x.x.x.x x.x.x.x
exit

int  g1/0/25
no sh
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allow vlan xxx
exit

int range f0/1 -24
switchport mode access
switchport access vlan xxx
no sh
exit

exit

wr