lsw2配置:
interface Vlanif10
ip address 10.1.1.254 255.255.255.0
ip address 10.1.2.254 255.255.255.0 sub
interface Vlanif20
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
lsw3配置:
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/2
port link-type access
port default vlan 10
interface Ethernet0/0/3
port hybrid pvid vlan 10
port hybrid untagged vlan 10
r1配置:
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
idle-timeout 0 0 telnet配置aaa模式有用户和密码
aaa
local-user 123 password cipher 密码
其他就是简单的IPV4地址配置ok?