
交換機與路由器相連接的口怎么配置
uj5u.com熱心網友回復:
為什么不同網段會用相同段的IP?你這個拓撲是典型的單臂路由,路由器起子介面,交換機分VLAN,上聯路由器的介面用和TRUNK。
網上找找單臂路由的檔案看看吧。
uj5u.com熱心網友回復:
如果用相同的網段的話,那么交換機只起到了分割廣播域的作用,而不是單臂路由。樓主想問什么?問題仔細點的話,我可以回復的更加詳細。uj5u.com熱心網友回復:
2960:conf t
vlan10
vlan20
exit
int f0/1
switch mode trunk
switch trunk all vlan all
int f0/2 PC0
switch mode acc
switch acc vlan 10
int f0/3 PC1
switch mode acc
switch acc vlan 20
2811:
conf t
int g0/0
no ip add
int g0/0.10 vlan10子介面
en dot 10
ip add ......
int g0/0.20 vlan20子介面
en dot 20
ip add .....
最后記得ip routing
uj5u.com熱心網友回復:
交換機這邊的口設定成trunk 路由器那邊口設定虛介面轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/94027.html
標籤:交換及路由技術
上一篇:如何從程式員升級到架構師?
