cisco学习笔记(4)
2009-02-11 10:51
253 查看
昨天比较忙没有时间做笔记,今天补发,先搞个简单的.
这次主要做VLAN的实验,
sw1的配置:
Switch>en
Switch#vlan data
Switch(vlan)#vlan 10 name vlan10
VLAN 10 added:
Name:vlan10
Switch(vlan)#vlan 20 name vlan20
VLAN 20 added:
Name:vlan20
Switch(vlan)#end
Switch#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Switch(config)#int f0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#end
Switch#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Switch(config)#int f0/12
Switch(config-if)#switchport mode trunk
Switch(config-if)#
R1的配置:
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no ip address
Router(config-if)#no sh
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#int f0/0.10
Router(config-subif)#ip address 192.168.1.100 255.255.255.0
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#int f0/0.20
Router(config-subif)#ip address 192.168.2.100 255.255.255.0
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#
3台PC按图设置好IP后,PC1与PC2能互相PING通,也能PING通网关192.168.1.100.PC3只能PING通网关192.168.2.100本文出自 “allen的学习笔记” 博客,请务必保留此出处http://allenyu.blog.51cto.com/193668/130068
这次主要做VLAN的实验,
sw1的配置:
Switch>en
Switch#vlan data
Switch(vlan)#vlan 10 name vlan10
VLAN 10 added:
Name:vlan10
Switch(vlan)#vlan 20 name vlan20
VLAN 20 added:
Name:vlan20
Switch(vlan)#end
Switch#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Switch(config)#int f0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#end
Switch#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Switch(config)#int f0/12
Switch(config-if)#switchport mode trunk
Switch(config-if)#
R1的配置:
Router>
Router>
Router>en
Router#conf t
Enter configuration commands, .e per line. End with CNTL/Z.
Router(config)#int f0/0
Router(config-if)#no ip address
Router(config-if)#no sh
%LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
Router(config-if)#int f0/0.10
Router(config-subif)#ip address 192.168.1.100 255.255.255.0
Router(config-subif)#encapsulation dot1q 10
Router(config-subif)#int f0/0.20
Router(config-subif)#ip address 192.168.2.100 255.255.255.0
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#
3台PC按图设置好IP后,PC1与PC2能互相PING通,也能PING通网关192.168.1.100.PC3只能PING通网关192.168.2.100本文出自 “allen的学习笔记” 博客,请务必保留此出处http://allenyu.blog.51cto.com/193668/130068
相关文章推荐
- cisco命令学习笔记
- 2008年7月19日学习笔记----管理cisco设备
- Cisco学习笔记--BGP14条选路原则
- 学习笔记之四_Cisco系统IOS和安全设备管理系统SDM(CCNA知识考点)
- cisco学习笔记
- CCNA学习笔记5-管理Cisco设备
- CCNA学习笔记4-安装Cisco设备
- Cisco协议学习笔记(VTP)
- CISCO学习笔记(一)各种线缆介绍及路由基本配置
- Cisco学习笔记 CCNP-EIGRP
- CCNA学习笔记4-安装Cisco设备
- 【CISCO学习笔记】RIPV1和RIPV2区别
- cisco学习笔记
- 以前学习cisco ccna 课程的时候做的笔记
- Cisco路由器OSPF协议经典学习笔记
- 学习笔记之五_管理Cisco互联网络(CCNA知识考点)
- CCNA 学习笔记(二)--CISCO设备初接触