interface FastEthernet0/23 switchport access vlan 2 switchport mode access ! interface FastEthernet0/24 switchport access vlan 3 switchport mode access ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 no ip address shutdown ! interface Vlan2 ip address 192.168.1.254 ...
Interface vlan 10 或20 1. 2. 3. 4. 5. 6. 三层交换机的端口模式 二层接口(switchport):access模式、trunk模式 三层接口:路由接口(no switchport或称为routed port)、SVI接口 开启三层交换机的路由功能 #ip routing
路由接口(routed ports): 分为两类: 真实接口A:路由器接口和L3-SW关闭交换能力的接口(in fa0/1 →no switchport相当于做为路由接口→ip add ……); 虚拟接口B:子接口、VLAN port和Loopback等; int vlan10 ip add ... VTP:(VLAN TRUNK PROTOCOL) 是cisco私有的协议(GVRP) VTP信息,只能在TRUNK链路上传递...
end show命令輸出 show interfaces [interface] irb 此命令顯示為指定介面可路由或橋接的協定,如下所示: <#root> R1# show interface e0 irb Ethernet0 Routed protocols on Ethernet0: ip Bridged protocols on Ethernet0: ip ipx !-- IP protocol is routed as well as bridged. Software MAC address ...
SWITCHA(config)#interface g0/24 SWITCHA(config-if-GigabitEthernet 0/24)#switchport mode trunk SWITCHA(config-if-GigabitEthernet 0/24)#switchport private-vlan promiscuous trunk 10 20,30 --->配置上联GW的端口为混杂口属性 指定主,辅vlan的映射关系,实现私有VLAN的报文送本接口发送出去时,修改VID为主VL...
VLAN范围。如:f0/1-6 、注意:在 interface range中的接口必须是相同类型的接口。配置举例:配置交换机的接口 fastethernet0/1fastethernet0/12的速度为100Mbps,并把fastethernet0/1fastethernet0/3和 fastethernet0/7fastethernet0/10 分配给VLAN2。Swi 20、tch>enableSwitch#configure terminalSwitch(config)#...
show interfaces [interface] irb 此命令顯示為指定介面可路由或橋接的協定,如下所示: R1#show interface e0 irb Ethernet0 Routed protocols on Ethernet0: ip Bridged protocols on Ethernet0: ip ipx !-- IP protocol is routed as well as bridged. Software MAC address filter on Ethernet0 Hash Len...
•基于三层交换机的VLAN路由方式:–SVI(switchvirtualinterface)–RoutedPort2020-4-37三层交换机——SVI•一个SVI对应一个VLAN;•SVI接口可以同时是该交换机的管理接口和下层设备的网关接口。2020-4-38基于SVI的三层交换通信Switch(config)#iproutingStep1:ConfigureIProuting.Switch(config)#routerip_routing_...
•基于三层交换机的VLAN路由方式:–SVI(switchvirtualinterface)–RoutedPort.8三层交换机——SVI•一个SVI对应一个VLAN;•SVI接口可以同时是该交换机的管理接口和下层设备的网关接口。.9基于SVI的三层交换通信Switch(config)#iproutingStep1:ConfigureIProuting.Switch(config)#routerip_routing_protocolStep4:...
Interface Fa0/48 of the Layer3 switch is configured as a Routed Port with IP address10.0.0.1.接口的第三层交换机Fa0/48配置为路由端口与IP地址10.0.0.1。Two Vlans are configured on the L3 switch, Vlan10 and Vlan20.两个VLAN的配置在三层交换机,Vlan10和Vlan20。For Vlan10 we will create an ...