资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

简单网络配置-创新互联

简单网络配置

成都创新互联从2013年创立,是专业互联网技术服务公司,拥有项目网站制作、成都网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元都安做网站,已为上家服务,为都安各地企业和个人服务,联系电话:13518219792

sw1:
配置vlan:
[sw1]vlan batch 10 20
[sw1]int e0/0/1
[sw1-Ethernet0/0/1]port link-type access
[sw1-Ethernet0/0/1]port default vlan 10
[sw1-Ethernet0/0/1]int e0/0/2
[sw1-Ethernet0/0/2]port link-type access
[sw1-Ethernet0/0/2]port default vlan 20
[sw1]port-group 1
[sw1-port-group-1]group-member e0/0/3 e0/0/4
[sw1-port-group-1]port link-type trunk
[sw1-port-group-1]port trunk allow-pass vlan all

save

sw2:
配置vlan:
[sw2]vlan batch 10 30
[sw2]int e0/0/1
[sw2-Ethernet0/0/1]port link-type access
[sw2-Ethernet0/0/1]port default vlan 10
[sw2-Ethernet0/0/1]int e0/0/2
[sw2-Ethernet0/0/2]port link-type access
[sw2-Ethernet0/0/2]port default vlan 30
[sw2]port-group 1
[sw2-port-group-1]group-member e0/0/3 e0/0/4
[sw2-port-group-1]port link-type trunk
[sw2-Ethernet0/0/1]port trunk allow-pass vlan all

save

sw3:
配置vlan:
[sw3]vlan batch 20 30
[sw3]int e 0/0/1
[sw3-Ethernet0/0/1]port link-type access
[sw3-Ethernet0/0/1]port default vlan 20
[sw3-Ethernet0/0/1]int e0/0/2
[sw3-Ethernet0/0/2]port link-type access
[sw3-Ethernet0/0/2]port default vlan 30
[sw3-port-group-1]group-member e0/0/3 e0/0/4
[sw3-port-group-1]port link-type trunk
[sw3-port-group-1]port trunk allow-pass vlan all

save

lsw4:
配置vlan:
[lsw4]vlan batch 10 20 30
[lsw4]port-group 1
[lsw4-port-group-1]group-member g0/0/1 to g0/0/4
[lsw4-port-group-1]port link-type trunk
[lsw4-port-group-1]port trunk allow-pass vlan all
配置vrrp:
[lsw4]int Vlanif 10
[lsw4-Vlanif10]vrrp vrid 10 virtual-ip 192.168.10.254
[lsw4-Vlanif10]vrrp vrid 10 priority 200
[lsw4-Vlanif10]int vlanif 20
[lsw4-Vlanif20]vrrp vrid 20 virtual-ip 192.168.20.254
[lsw4-Vlanif20]vrrp vrid 20 priority 200
[lsw4-Vlanif20]int vlanif 30
[lsw4-Vlanif30]vrrp vrid 30 virtual-ip 192.168.30.254

[lsw4]int vlanif 10
[lsw4-Vlanif10]ip add 192.168.10.253 24
[lsw4-Vlanif10]int vlanif 20
[lsw4-Vlanif20]ip add 192.168.20.253 24
[lsw4-Vlanif20]int vlanif 30
[lsw4-Vlanif30]ip add 192.168.30.253 24

[lsw4]dis vrrp bri

浮动路由:
[lsw4]vlan 2
[lsw4]int vlanif 2
[lsw4-Vlanif2]ip add 192.168.1.1 24

[lsw4]int g0/0/5
[lsw4-GigabitEthernet0/0/5]port link-type access
[lsw4-GigabitEthernet0/0/5]port default vlan 2

[lsw4]int vlanif 10
[lsw4-Vlanif10]vrrp vrid 10 track interface g0/0/5 reduced 110
[lsw4-Vlanif10]int vlanif 20
[lsw4-Vlanif20]vrrp vrid 20 track interface g0/0/6 reduced 110

[lsw4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.2

DHCP配置:
[lsw4]dhcp enable
[lsw4]ip pool v10
[lsw4-ip-pool-v10]network 192.168.10.0 mask 24
[lsw4-ip-pool-v10]gateway-list 192.168.10.254
[lsw4]int vlanif 10
[lsw4-Vlanif10]dhcp select global

[lsw4]display ip interface brief

lsw5:
配置vlan:
[lsw5]vlan batch 10 20 30
[lsw5]port-group 1
[lsw5-port-group-1]group-member g0/0/1 to g0/0/4
[lsw5-port-group-1]port link-type trunk
[lsw5-port-group-1]port trunk allow-pass vlan all
配置vrrp:
[lsw5]int vlanif 10
[lsw5-Vlanif10]vrrp vrid 10 virtual-ip 192.168.10.254
[lsw5-Vlanif10]int vlanif 20
[lsw5-Vlanif20]vrrp vrid 20 virtual-ip 192.168.20.254
[lsw5-Vlanif20]int vlanif 30
[lsw5-Vlanif30]vrrp vrid 30 virtual-ip 192.168.30.254
[lsw5-Vlanif30]vrrp vrid 30 priority 200

[lsw5]int vlanif 10
[lsw5-Vlanif10]ip add 192.168.10.252 24
[lsw5-Vlanif10]int vlanif 20
[lsw5-Vlanif20]ip add 192.168.20.252 24
[lsw5-Vlanif20]int vlanif 30
[lsw5-Vlanif30]ip add 192.168.30.252 24

[lsw5]dis vrrp bri

浮动路由:
[lsw5]vlan batch 2 3
[lsw5]int vlanif 2
[lsw5-Vlanif2]ip add 192.168.2.1 24
[lsw5-Vlanif2]int vlanif 3
[lsw5-Vlanif3]ip add 192.168.3.254 24

[lsw4]int g0/0/5
[lsw4-GigabitEthernet0/0/5]port link-type access
[lsw4-GigabitEthernet0/0/5]port default vlan 3

[lsw4]int g0/0/6
[lsw4-GigabitEthernet0/0/6]port link-type access
[lsw4-GigabitEthernet0/0/6]port default vlan 2

[lsw5]int vlanif 30
[lsw5-Vlanif30]vrrp vrid 30 track interface g0/0/6 reduced 110

[lsw5]ip route-static 0.0.0.0 0.0.0.0 192.168.2.2

DHCP配置:
[lsw5]dhcp enable
[lsw5]ip pool v20
[lsw5-ip-pool-v20]network 192.168.20.0 mask 24
[lsw5-ip-pool-v20]gateway-list 192.168.20.254
[lsw5]int vlanif 20
[lsw5-Vlanif20]dhcp select global

[lsw5]ip pool v30
[lsw5-ip-pool-v30]network 192.168.30.0 mask 24
[lsw5-ip-pool-v30]gateway-list 192.168.20.254
[lsw5]int vlanif 30
[lsw5-Vlanif20]dhcp select global

r1:
浮动路由:
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.2 24
[r1-GigabitEthernet0/0/1]int g0/0/2
[r1-GigabitEthernet0/0/2]ip add 192.168.2.2 24
[r1-GigabitEthernet0/0/2]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.100.1 24

[r1]ip route-static 192.168.10.0 24 192.168.1.1
[r1]ip route-static 192.168.10.0 24 192.168.2.1 preference 70
[r1]ip route-static 192.168.20.0 24 192.168.1.1
[r1]ip route-static 192.168.20.0 24 192.168.2.1 preference 70
[r1]ip route-static 192.168.30.0 24 192.168.2.1
[r1]ip route-static 192.168.30.0 24 192.168.1.1 preference 70

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文题目:简单网络配置-创新互联
转载注明:http://cdkjz.cn/article/hcehi.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220