三层交换机的配置
发布网友
发布时间:2022-04-23 06:20
我来回答
共2个回答
热心网友
时间:2023-06-28 11:20
Switch>
Switch>
Switch>
Switch>en
Switch>enable
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routi
Switch(config)#ip routing
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#no sw
Switch(config-if)#no switchport
Switch(config-if)#ip ad
Switch(config-if)#ip address 172.16.50.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#no sw
Switch(config-if)#no switchport
Switch(config-if)#ip ad
Switch(config-if)#ip address 172.16.10.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
我使用的方法是物理端口法,还有一个叫SVL
Switch>
Switch>
Switch>
Switch>en
Switch>enable
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vl
Switch(config)#vlan 50
Switch(config-vlan)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 50
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface vl
Switch(config)#interface vlan 50
%LINK-5-CHANGED: Interface Vlan50, changed state to upSwitch(config-if)#ip ad
Switch(config-if)#ip address 172.16.50.1 255.255.255.0
Switch(config-if)#nos h
Switch(config-if)#nos h
^
% Invalid input detected at '^' marker.
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 50
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface vl
Switch(config)#interface vlan 10
%LINK-5-CHANGED: Interface Vlan10, changed state to upSwitch(config-if)#ip ad
Switch(config-if)#ip address 172.16.10.1 255.255.255.0
Switch(config-if)#no s
Switch(config-if)#no shutdown
Switch(config-if)#
三层和路由设备连接就这两种方法,
而后的话就用路由协议了,
在使用在三层上用静态路由的时候,有个注意事项,使用的是下一跳地址,如
Switch(config)#ip route 172.16.60.0 255.255.255.0 172.16.50.2
在使用动态协议的时候,大体上一样,
热心网友
时间:2023-06-28 11:21
说明你要实现什么?