vlan间三层路由
2007-03-22 21:54
155 查看
一、vlan间三层路由
1.1、描述
vlan间路由可以通过routerswitch来做也就是三层交换机,不用通过路由器。
1.2、拓扑
通过三层交换路由不需要另外的交换机,可以让如图所示vlan10与vlan20之间的主机互相访问。
2.3、其本配制
SW1:===========================
vlan datebase
vlan 10 /创建vlan 10
vlan 20 /创建 vlan 20
exit
int f0/1 /将f0/1端口放在vlan 10中
duplex full
speed 100
switchport mode access
switchport access vlan 10
no sh
int f0/2 /将f0/2端口放在vlan 20中
duplex full
speed 100
switchport mode access
switchport access vlan 20
no sh
PC1:============================
int f0/0
ip add 10.1.1.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.1.1.1 /由于拿路由器来模拟PC所以启默认路由指向网关
PC2:============================
int f0/0
ip add 10.2.2.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.2.2.1
以上命令配制好后,PC1 ping PC2 是ping不通的
2.4、配制三层路由
SW1:============================
conf t
ip routing /在交换机上启用路由功能
int vlan 10
ip add 10.1.1.1 255.255.255.0 /设备vlan的IP地址
no sh
int vlan 20
ip add 10.1.1.2 255.255.255.0
no sh
这样配制后 再用PC1来ping PC2是不是通了。是不是很简单
1.1、描述
vlan间路由可以通过routerswitch来做也就是三层交换机,不用通过路由器。
1.2、拓扑
通过三层交换路由不需要另外的交换机,可以让如图所示vlan10与vlan20之间的主机互相访问。
2.3、其本配制
SW1:===========================
vlan datebase
vlan 10 /创建vlan 10
vlan 20 /创建 vlan 20
exit
int f0/1 /将f0/1端口放在vlan 10中
duplex full
speed 100
switchport mode access
switchport access vlan 10
no sh
int f0/2 /将f0/2端口放在vlan 20中
duplex full
speed 100
switchport mode access
switchport access vlan 20
no sh
PC1:============================
int f0/0
ip add 10.1.1.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.1.1.1 /由于拿路由器来模拟PC所以启默认路由指向网关
PC2:============================
int f0/0
ip add 10.2.2.2 255.255.255.0
no sh
exit
ip route 0.0.0.0 0.0.0.0 10.2.2.1
以上命令配制好后,PC1 ping PC2 是ping不通的
2.4、配制三层路由
SW1:============================
conf t
ip routing /在交换机上启用路由功能
int vlan 10
ip add 10.1.1.1 255.255.255.0 /设备vlan的IP地址
no sh
int vlan 20
ip add 10.1.1.2 255.255.255.0
no sh
这样配制后 再用PC1来ping PC2是不是通了。是不是很简单
相关文章推荐
- 三层交换(VLAN间互通+路由功能)+VTP+STP(PVST)
- 在一台三层交换上,通过配置dhcp和路由实现不同VLAN相互通信
- VLAN间路由:每个VLAN一个物理连接,单臂路由,三层交换
- 三层交换(VLAN间互通+路由功能)+VTP+STP(PVST)综合实验
- 三层交换实现VLAN间路由
- 【思科】DHCP中继,三层交换VLAN间路由实战
- 三层交换实现vlan间路由与dhcp配置 推荐
- NA-NP-IE系列实验51: 三层交换实现VLAN 间路由
- Cisco三层vlan与路由配置
- 使用三层交换代替路由分别使vlan10与vlan20相通,与路由器之间设置静态路由使三台pc机相通
- 三层交换(VLAN间互通+路由功能)= SOHO路由器
- 路由与交换 基础 6 Vlan 基础 3 三层交换
- 三层网络 VLAN 静态路由、反向路由设置简记
- 三层交换(VLAN间互通+路由功能)+VTP+STP(PVST)综合实验
- 三层交换配路由不同(VLAN)6台PC之间通信(华为)
- 两层交换机上划分VLAN借三层交换机路由功能实现跨网段访问(Cisco Packer Tracer 模拟器)
- 三层交换(VLAN间互通+路由功能)+VTP+STP(PVST)
- VLAN(单臂路由,三层路由功能)
- Cisco三层vlan与路由配置