1、Vlan间通信:

         通过三层交换机实现对不同vlan之间的路由通讯

 



2、拓扑规划:

    VLAN间通信之端到端模式                       

 


3、案例实施:

1)、SW1配置:

配置e0/10e0/17接口为trunk链路模式并且允许所有vlan数据通过

 

VLAN间通信之端到端模式

VLAN间通信之端到端模式

 

配置sw1与防火墙fw的链路地址:

VLAN间通信之端到端模式

 

指定默认网关:

ip route-static 0.0.0.0 0.0.0.0192.168.30.2 preference 60

 

配置sw1远程管理账号与口令:

VLAN间通信之端到端模式

VLAN间通信之端到端模式

 

2)、Sw2配置:

创建vlan10,将接口e1/0/13加入vlan10

vlan 10
interface Ethernet1/0/13
 portaccess vlan 10

 

e1/0/1配置为trunk链路,并允许所有vlan数据通过

VLAN间通信之端到端模式

 

配置远程管理

VLAN间通信之端到端模式

VLAN间通信之端到端模式

 

         3)、sw3配置:

e0/1配置为trunk模式,并允许所有vlan数据通过VLAN间通信之端到端模式

 

创建vlan20,添加接口e0/13

vlan 20
interface Ethernet0/13
 portaccess vlan 20

 

配置远程管理账号:

local-user admin
 password cipher 992`ZRIW(B_Q=^Q`MAF4<1!!
 service-type telnet level 3
user-interface vty 0 4
 authentication-mode scheme

 

         4)、fw配置:

配置与sw1的接口ip地址并添加到trust区域:

interface Ethernet0/0                    
 ipaddress 192.168.30.2 255.255.255.0
firewall zone trust
 addinterface Ethernet0/0
 setpriority 85

 

配置防火墙wan口地址,并添加到untrust区域:

interface Ethernet0/4
 ipaddress 192.168.102.150 255.255.255.0
 
firewall zone untrust
 addinterface Ethernet0/4              
 setpriority 5

 

配置远程管理账号:

local-user admin
 password cipher .]@USE=B,53Q=^Q`MAF4<1!!
 service-type telnet terminal
 level 3
user-interface vty 0 4
 authentication-mode scheme

 

配置ACL和默认路由使vlan10的用户可以访问intert

#

ip route-static 0.0.0.0 0.0.0.0192.168.102.1 preference 60
 iproute-static 192.168.10.0 255.255.255.0 192.168.30.1 preference 60
 
interface Ethernet0/4
 ipaddress 192.168.102.150 255.255.255.0
 natoutbound 3000

 

添加域名解析:

DNS resolve
 DNSserver 202.102.224.68

 

         5)、配置PC1IP地址为192.168.10.1/24,接入vlan10

                   配置PC2IP地址为192.168.20.1/24,接入vlan20

测试PC1是否能pingPC2

VLAN间通信之端到端模式

 

测试PC1能否访问internet

VLAN间通信之端到端模式


相关文章:

  • 2021-12-03
  • 2021-04-17
  • 2021-04-09
  • 2021-09-23
  • 2021-08-10
  • 2021-06-19
  • 2021-12-12
猜你喜欢
  • 2022-12-23
  • 2021-12-15
  • 2021-09-01
  • 2022-12-23
  • 2021-08-03
  • 2021-05-23
相关资源
相似解决方案