Phantosys跨双路由Vlan案例
原创
©著作权归作者所有:来自51CTO博客作者北纬29度的原创作品,请联系作者获取转载授权,否则将追究法律责任
三层交换机2台(核心交换A和汇聚交换B),在交换机A上添加两个Vlan(Vlan 10和Vlan200);Vlan 10的网段设为192.168.10.0/24(子网掩码255.255.255.0),网关地址设为192.168.10.1,交换机5到8号端口划入Vlan10;Vlan 200的网段设为192.168.200.0/24(子网掩码255.255.255.0),网关地址设为192.168.200.1,交换机10到20号端口划入Vlan200;Phantosys服务器IP地址192.168.200.77,放在Vlan200;
在交换机B上添加两个Vlan(Vlan 10和Vlan20);Vlan 10的网段设为192.168.10.0/24(子网掩码255.255.255.0),网关地址设为192.168.10.2,交换机10到20号端口划入Vlan10;Vlan 20的网段设为192.168.20.0/24(子网掩码255.255.255.0),网关地址设为192.168.20.1,交换机21到24号端口划入Vlan20;客户端放在Vlan20。
交换机A的5号口与交换机B的13号口做Trunk。
-----------------------------------------------------------------------------------------------------------------
Switch#show run
Building configuration...
Current configuration : 2678 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
no aaa new-model
ip subnet-zero
ip routing
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree portfast default
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport access vlan 10
switchport trunk encapsulation dot1q
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 200
switchport mode access
!
interface FastEthernet0/21
switchport mode dynamic desirable
!
interface FastEthernet0/22
switchport mode dynamic desirable
!
interface FastEthernet0/23
switchport mode dynamic desirable
!
interface FastEthernet0/24
switchport mode dynamic desirable
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.10.1 255.255.255.0
ip helper-address 192.168.200.77
!
interface Vlan200
ip address 192.168.200.1 255.255.255.0
!
ip classless
ip route 192.168.0.0 255.255.0.0 192.168.10.2
ip http server
!
!
control-plane
!
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
Switch#show run
Building configuration...
Current configuration : 2730 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
enable secret 5 $1$LEeG$sb9p1twQ6sDRc0p7kH.Ym0
enable password 123456
!
ip subnet-zero
ip routing
!
!
spanning-tree mode pvst
spanning-tree portfast default
spanning-tree extend system-id
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
!
interface FastEthernet0/2
switchport mode dynamic desirable
!
interface FastEthernet0/3
switchport mode dynamic desirable
!
interface FastEthernet0/4
switchport mode dynamic desirable
!
interface FastEthernet0/5
switchport mode dynamic desirable
!
interface FastEthernet0/6
switchport mode dynamic desirable
!
interface FastEthernet0/7
switchport mode dynamic desirable
!
interface FastEthernet0/8
switchport mode dynamic desirable
!
interface FastEthernet0/9
switchport mode dynamic desirable
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/11
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/12
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/13
switchport access vlan 10
switchport trunk encapsulation dot1q
switchport mode access
!
interface FastEthernet0/14
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/15
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/16
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/17
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/18
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/19
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/20
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/21
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/22
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/23
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/24
switchport access vlan 20
switchport mode access
!
interface GigabitEthernet0/1
switchport mode dynamic desirable
!
interface GigabitEthernet0/2
switchport mode dynamic desirable
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 192.168.10.2 255.255.255.0
ip helper-address 192.168.200.77
!
interface Vlan20
ip address 192.168.20.1 255.255.255.0
ip helper-address 192.168.200.77
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.10.1
ip http server
!
!
!
line con 0
line vty 0 4
password 123456
login
line vty 5 15
password 123456
login
!
end
-----------------------------------------------------------------------------------------------------------------
上一篇:H3C交换机简单配置案例
下一篇:PXE协议启动过程详解
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
PPPoE跨VLAN拨号 vlan跨路由器
关注我,你的眼睛会怀孕 华为路由器交换机配置命令:计算机命令 PCAlogin:root;使用root用户 password:linux;口令是linux #shutdown-hnow;关机 #init0;关机 #logout;用户注销 #login;用户登录 #ifconfig;显示IP地址 #ifconfigeth0netmask;设置IP地址 #ifco
PPPoE跨VLAN拨号 tplinkl路由器跨vlan访问 中兴交换机配置命令手册 信锐交换机配置命令 华为5720设置静态路由不通