NETWORK笔记10:VLAN之间通信(network in network)

网友投稿 185 2022-09-26


NETWORK笔记10:VLAN之间通信(network in network)

实验名称:VLAN之间通信(华为)

实验拓扑:

实验步骤: 1.改主机名

2.创建VLAN 添加描述

3.配置VLAN 添加IP

4.配置端口 模式 加入VLAN

5.PC配置IP 子网掩码 网关

6.验证:display vlan

display prt vlan

7.测试:PC ping

8.保存save

实验总结:VLan10 20 30互通(华为三层设备默认开启路由功能)

实验命令:

[Huawei]sysname HuaweiSwitch

[HuaweiSwitch]vlan batch 10 20 30       #批量创建VLAN 10 20 30

[HuaweiSwitch]interface vlan 10        #接口 Vlan10

[HuaweiSwitch-Vlanif10]undo shutdown        #启用(默认是激活状态,为了培养习惯)

[HuaweiSwitch-Vlanif10]description vlan--10        #添加描述

[HuaweiSwitch-Vlanif10]ip address 192.168.10.254 255.255.255.0       #VLAN10 的网关

[HuaweiSwitch-Vlanif10]quit

[HuaweiSwitch]interface vlan 20

[HuaweiSwitch-Vlanif20]undo shutdown

[HuaweiSwitch-Vlanif20]description vlan--20

[HuaweiSwitch-Vlanif20]ip address 192.168.20.254 255.255.255.0

[HuaweiSwitch-Vlanif20]quit

[HuaweiSwitch]interface vlan 30

[HuaweiSwitch-Vlanif30]undo shutdown

[HuaweiSwitch-Vlanif30]description vlan--30

[HuaweiSwitch-Vlanif30]ip address 192.168.30.254 255.255.255.0

[HuaweiSwitch]interface GigabitEthernet 0/0/1

[HuaweiSwitch-GigabitEthernet0/0/1]undo shutdown

[HuaweiSwitch-GigabitEthernet0/0/1]port link-type access        #端口 链路 类型 access

[HuaweiSwitch-GigabitEthernet0/0/1]port default vlan 10        #端口 默认 vlan10

[HuaweiSwitch]interface GigabitEthernet 0/0/2

[HuaweiSwitch-GigabitEthernet0/0/2]undo shutdown

[HuaweiSwitch-GigabitEthernet0/0/2]port link-type access

[HuaweiSwitch-GigabitEthernet0/0/2]port default vlan 20

[HuaweiSwitch]interface GigabitEthernet 0/0/3

[HuaweiSwitch-GigabitEthernet0/0/3]undo shutdown

[HuaweiSwitch-GigabitEthernet0/0/3]port link-type access

[HuaweiSwitch-GigabitEthernet0/0/3]port default vlan 30

[HuaweiSwitch]display vlan

[HuaweiSwitch]display  port vlan

PC1:192.168.10.1 255.255.255.0 192.168.10.254 Vlan10

PC2:192.168.20.1 255.255.255.0 192.168.20.254 Vlan20

PC3:192.168.30.1 255.255.255.0 192.168.30.254 Vlan30

save

-------------------------------------------------------------------------------------------------------------------------------

实验名称:VLAN之间通信(思科)

实验拓扑:

实验步骤: 1.主机名更改

2.创建VLAN 和名称

3.启用路由功能

4.配置VLAN 添加IP

5.配置端口 模式 加入VLAN

6.PC配置IP 子网掩码 网关

7.验证:show vlan brief

show ip interface brief

8.测试:PC ping

9.保存write

实验总结:VLan10 20 30互通(思科三层设备默认关闭路由功能)

Switch>enable

Switch#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#hostname CiscoSwitch

CiscoSwitch(config)#no ip domain lookup

CiscoSwitch(config)#vlan 10

CiscoSwitch(config-vlan)#name GatewayForVlan--10

CiscoSwitch(config-vlan)#vlan 20

CiscoSwitch(config-vlan)#name GatewayForVlan--20

CiscoSwitch(config-vlan)#vlan 30

CiscoSwitch(config-vlan)#name GatewayForVlan--30

CiscoSwitch(config)#ip routing

CiscoSwitch(config)#interface vlan 10

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#description Gateway for vlan--10

CiscoSwitch(config-if)#ip address 192.168.10.254 255.255.255.0

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface vlan 20

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#description Gateway for vlan--20

CiscoSwitch(config-if)#ip address 192.168.20.254 255.255.255.0

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface vlan 30

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#description Gateway for vlan--30

CiscoSwitch(config-if)#ip address 192.168.30.254 255.255.255.0

CiscoSwitch(config)#interface fastEthernet 0/1

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 10

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface fastEthernet 0/2

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 20

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface fastEthernet 0/3

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 30

CiscoSwitch#show vlan brief

CiscoSwitch#show ip interface brief

PC1:192.168.10.1 255.255.255.0 192.168.10.254 Vlan10

PC2:192.168.20.1 255.255.255.0 192.168.20.254 Vlan20

PC3:192.168.30.1 255.255.255.0 192.168.30.254 Vlan30

CiscoSwitch#write

--------------------------------------------------------------------------------------------------------------------------

实验名称:VLAN之间通信(华为)

实验拓扑:

实验步骤:  1.主机名更改

2.创建VLAN 和名称

3.启用VLAN 配置IP

4.启用端口 配置TRUNK模式  允许所有VLAN

配置ACCESS模式 允许VLAN

5.验证:display vlan

display port vlan

display interface brief

display ip interface brief

6.PC配置IP 子网掩码 网关

7.测试:PC ping

8.保存save

实验总结:VLan10 20 30互通(华为三层设备默认开启路由功能)

system-view

[Huawei]sysname

[Huawei]sysname GatewaySwitch

[GatewaySwitch]vlan batch 10 20 30

[GatewaySwitch]interface vlan 10

[GatewaySwitch-Vlanif10]undo shutdown

[GatewaySwitch-Vlanif10]description Gateway for vlan-10

[GatewaySwitch-Vlanif10]ip address 192.168.10.254 255.255.255.0

[GatewaySwitch-Vlanif10]quit

[GatewaySwitch]interface vlan 20

[GatewaySwitch-Vlanif20]undo shutdown

[GatewaySwitch-Vlanif20]description Gateway for vlan-20

[GatewaySwitch-Vlanif20]ip address 192.168.20.254 255.255.255.0

[GatewaySwitch-Vlanif20]quit

[GatewaySwitch]interface vlan 30

[GatewaySwitch-Vlanif30]undo shutdown

[GatewaySwitch-Vlanif30]description Gateway for vlan-30

[GatewaySwitch-Vlanif30]ip address 192.168.30.254 255.255.255.0

[GatewaySwitch-Vlanif30]quit

[GatewaySwitch]interface GigabitEthernet 0/0/1

[GatewaySwitch-GigabitEthernet0/0/1]undo shutdown

[GatewaySwitch-GigabitEthernet0/0/1]port link-type trunk

[GatewaySwitch-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[GatewaySwitch]display vlan

[GatewaySwitch]display port vlan

[GatewaySwitch]display ip interface brief

save

system

system-view

[Huawei]sysname HuaweiSwitch

[HuaweiSwitch]vlan batch 10 20 30

[HuaweiSwitch]interface vlan 10

[HuaweiSwitch-Vlanif10]description VLAN10

[HuaweiSwitch-Vlanif10]quit

[HuaweiSwitch]interface vlan 20

[HuaweiSwitch-Vlanif20]description VLAN20

[HuaweiSwitch-Vlanif20]quit

[HuaweiSwitch]interface vlan 30

[HuaweiSwitch-Vlanif30]description VLAN30

[HuaweiSwitch-Vlanif30]quit

[HuaweiSwitch]interface Ethernet 0/0/1

[HuaweiSwitch-Ethernet0/0/1]undo shutdown

[HuaweiSwitch-Ethernet0/0/1]port link-type access

[HuaweiSwitch-Ethernet0/0/1]port default vlan 10

[HuaweiSwitch-Ethernet0/0/1]quit

[HuaweiSwitch]interface Ethernet 0/0/2

[HuaweiSwitch-Ethernet0/0/2]undo shutdown

[HuaweiSwitch-Ethernet0/0/2]port link-type access

[HuaweiSwitch-Ethernet0/0/2]port default vlan 20

[HuaweiSwitch-Ethernet0/0/2]quit

[HuaweiSwitch]interface Ethernet 0/0/3

[HuaweiSwitch-Ethernet0/0/3]undo shutdown

[HuaweiSwitch-Ethernet0/0/3]port link-type access

[HuaweiSwitch-Ethernet0/0/3]port default vlan 30

[HuaweiSwitch]interface GigabitEthernet 0/0/1

[HuaweiSwitch-GigabitEthernet0/0/1]undo shutdown

[HuaweiSwitch-GigabitEthernet0/0/1]port link-type trunk

[HuaweiSwitch-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[GatewaySwitch]display vlan

[GatewaySwitch]display port vlan

[GatewaySwitch]display interface brief

[GatewaySwitch]display ip interface brief

save

PC1: 192.168.10.1 255.255.255.0 192.168.10.254 VLan10

PC2: 192.168.20.1 255.255.225.0 192.168.20.254 Vlan20

PC3: 192.168.30.1 255.255.255.0 192.168.30.254 Vlan30

--------------------------------------------------------------------------------------------------------------------------

实验名称:VLAN之间通信(思科)

实验拓扑:

实验步骤: 1.主机名更改

2.关闭域查询(启用路由功能)

3.创建VLAN 和名称

4.启用VLAN 配置IP

5.启用端口 配置ACCESS模式 允许VLAN

配置TRUNK模式  允许所有VLAN

6.验证:show vlan brief

show interface trunk

show ip interface brief

7.PC配置IP 子网掩码 网关

8.测试:PC ping

9.保存write

实验总结:VLan10 20 30互通(思科三层设备默认关闭路由功能)

Switch>enable

Switch#configure terminal

Switch(config)#hostname GatewaySwitch

GatewaySwitch(config)#no ip domain lookup

GatewaySwitch(config)#ip routing

GatewaySwitch(config)#vlan 10

GatewaySwitch(config-vlan)#name VLAN10

GatewaySwitch(config-vlan)#vlan 20

GatewaySwitch(config-vlan)#name VLAN20

GatewaySwitch(config-vlan)#vlan 30

GatewaySwitch(config-vlan)#name VLAN30

GatewaySwitch(config-vlan)#exit

GatewaySwitch(config)#interface vlan 10

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#description Gateway for vlan-10

GatewaySwitch(config-if)#ip address 192.168.10.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 20

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#description Gateway for vlan-20

GatewaySwitch(config-if)#ip address 192.168.20.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 30

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#description Gateway for vlan-30

GatewaySwitch(config-if)#ip address 192.168.30.254 255.255.255.0

GatewaySwitch(config)#interface gigabitEthernet 0/1

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#switchport trunk encapsulation dot1q

GatewaySwitch(config-if)#switchport mode trunk

GatewaySwitch(config-if)#switchport trunk allowed vlan all

GatewaySwitch#show vlan brief

GatewaySwitch#show ip interface brief

GatewaySwitch#show interface trunk

GatewaySwitch#write

Switch>enable

Switch#configure terminal

Switch(config)#hostname CiscoSwitch

CiscoSwitch(config)#no ip domain lookup

CiscoSwitch(config)#vlan 10

CiscoSwitch(config-vlan)#name VLAN-10

CiscoSwitch(config-vlan)#vlan 20

CiscoSwitch(config-vlan)#name VLAN-20

CiscoSwitch(config-vlan)#vlan 30

CiscoSwitch(config-vlan)#name VLAN-30

CiscoSwitch(config-vlan)#EXIT

CiscoSwitch(config)#interface vlan 10

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface vlan 20

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface vlan 30

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface fastEthernet 0/1

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 10

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface  fastEthernet 0/2

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 20

CiscoSwitch(config-if)#exit

CiscoSwitch(config)#interface fastEthernet 0/3

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode access

CiscoSwitch(config-if)#switchport access vlan 30

CiscoSwitch(config)#interface gigabitEthernet 0/1

CiscoSwitch(config-if)#no shutdown

CiscoSwitch(config-if)#switchport mode trunk

CiscoSwitch(config-if)#switchport trunk allowed vlan all

CiscoSwitch#show vlan brief

CiscoSwitch#show interface trunk

CiscoSwitch#show ip interface brief

CiscoSwitch#write

PC1: 192.168.10.1 255.255.255.0 192.168.10.254 VLan10

PC2: 192.168.20.1 255.255.225.0 192.168.20.254 Vlan20

PC3: 192.168.30.1 255.255.255.0 192.168.30.254 Vlan30

------------------------------------------------------------------------------------------------------------------------------

system-view

[Huawei]sysname HuaweiSwitch1

[HuaweiSwitch1]vlan batch 1 to 3

[HuaweiSwitch1]interface Ethernet 0/0/1

[HuaweiSwitch1-Ethernet0/0/1]port link-type access

[HuaweiSwitch1-Ethernet0/0/1]port default vlan 1

[HuaweiSwitch1-Ethernet0/0/1]quit

[HuaweiSwitch1]interface eth

[HuaweiSwitch1]interface Ethernet0/0/2

[HuaweiSwitch1-Ethernet0/0/2]port link-type access

[HuaweiSwitch1-Ethernet0/0/2]port default vlan 2

[HuaweiSwitch1-Ethernet0/0/2]quit

[HuaweiSwitch1]interface Ethernet 0/0/3

[HuaweiSwitch1-Ethernet0/0/3]port link-type access

[HuaweiSwitch1-Ethernet0/0/3]port default vlan 3

[HuaweiSwitch1-Ethernet0/0/3]quit

[HuaweiSwitch1]interface GigabitEthernet 0/0/1

[HuaweiSwitch1-GigabitEthernet0/0/1]port link-type trunk

[HuaweiSwitch1-GigabitEthernet0/0/1]port trunk allow-pass vlan all

display vlan

display port vlan

[Huawei]sysname HuaweiSwitch2

[HuaweiSwitch2]vlan batch 4 5

[HuaweiSwitch2]interface Ethernet 0/0/1

[HuaweiSwitch2-Ethernet0/0/1]port link-type access

[HuaweiSwitch2-Ethernet0/0/1]port default vlan 4

[HuaweiSwitch2-Ethernet0/0/1]quit

[HuaweiSwitch2]interface eth

[HuaweiSwitch2]interface Ethernet0/0/2

[HuaweiSwitch2-Ethernet0/0/2]port link-type access

[HuaweiSwitch2-Ethernet0/0/2]port default vlan 5

[HuaweiSwitch2-Ethernet0/0/2]quit

[HuaweiSwitch2]interface GigabitEthernet 0/0/1

[HuaweiSwitch2-GigabitEthernet0/0/1]port link-type trunk

[HuaweiSwitch2-GigabitEthernet0/0/1]port trunk allow-pass vlan all

display vlan

display port vlan

system-view

[Huawei]sysname GatewaySwitch

[GatewaySwitch]vlan batch 1 to 5

[GatewaySwitch]interface Vlanif 1

[GatewaySwitch-Vlanif1]ip address 192.168.1.254 255.255.255.0

[GatewaySwitch]interface Vlanif 2

[GatewaySwitch-Vlanif2]ip address 192.168.2.254 255.255.255.0

[GatewaySwitch]interface Vlanif 3

[GatewaySwitch-Vlanif3]ip address 192.168.3.254 255.255.255.0

[GatewaySwitch]interface Vlanif 4

[GatewaySwitch-Vlanif4]ip address 192.168.4.254 255.255.255.0

[GatewaySwitch]interface Vlanif 5

[GatewaySwitch-Vlanif5]ip address 192.168.5.254 255.255.255.0

[GatewaySwitch]interface GigabitEthernet 0/0/1

[GatewaySwitch-GigabitEthernet0/0/1]port link-type trunk

[GatewaySwitch-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[GatewaySwitch]interface GigabitEthernet 0/0/2

[GatewaySwitch-GigabitEthernet0/0/2]port link-type trunk

[GatewaySwitch-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[GatewaySwitch]vlan 6

[GatewaySwitch]interface Vlanif 6

[GatewaySwitch-Vlanif6]ip address 192.168.6.254 255.255.255.0

[GatewaySwitch]interface GigabitEthernet 0/0/24

[GatewaySwitch-GigabitEthernet0/0/24]port link-type access

[GatewaySwitch-GigabitEthernet0/0/24]port default vlan 6

[GatewaySwitch]ip route-static 192.168.7.0 255.255.255.0 192.168.6.1

[Huawei]sysname HuaweiRoutre

[HuaweiRoutre]interface GigabitEthernet 0/0/2

[HuaweiRoutre-GigabitEthernet0/0/2]ip address 192.168.6.1 255.255.255.0

[HuaweiRoutre]interface GigabitEthernet 0/0/0

[HuaweiRoutre-GigabitEthernet0/0/0]ip address 192.168.7.254 255.255.255.0

[HuaweiRoutre]ip route-static 0.0.0.0 0.0.0.0 192.168.6.254

-------------------------------------------------------------------------------------------------------------------------------------

Switch>enable

Switch#configure terminal

Switch(config)#hostname CiscoSwitch1

CiscoSwitch1(config)#no ip domain lookup

CiscoSwitch1(config)#vlan 1

CiscoSwitch1(config-vlan)#vlan 2

CiscoSwitch1(config-vlan)#vlan 3

CiscoSwitch1(config-vlan)#exit

CiscoSwitch1(config)#interface fastEthernet 0/1

CiscoSwitch1(config-if)#no shutdown

CiscoSwitch1(config-if)#switchport mode access

CiscoSwitch1(config-if)#switchport access vlan 1

CiscoSwitch1(config-if)#exit

CiscoSwitch1(config)#interface fastEthernet 0/2

CiscoSwitch1(config-if)#no shutdown

CiscoSwitch1(config-if)#switchport mode access

CiscoSwitch1(config-if)#switchport access vlan 2

CiscoSwitch1(config-if)#exit

CiscoSwitch1(config)#interface fastEthernet 0/3

CiscoSwitch1(config-if)#no shutdown

CiscoSwitch1(config-if)#switchport mode access

CiscoSwitch1(config-if)#switchport access vlan 3

CiscoSwitch1(config-if)#exit

CiscoSwitch1(config)#interface gigabitEthernet 0/1

CiscoSwitch1(config-if)#no shutdown

CiscoSwitch1(config-if)#switchport mode trunk

CiscoSwitch1(config-if)#switchport trunk allowed vlan all

CiscoSwitch1(config-if)#end

CiscoSwitch1#show vlan brief

CiscoSwitch1#show interface trunk

CiscoSwitch1#write

Switch>enable

Switch#configure terminal

Switch(config)#hostname CiscoSwitch2

CiscoSwitch2(config)#no ip domain lookup

CiscoSwitch2(config)#vlan 4

CiscoSwitch2(config-vlan)#vlan 5

CiscoSwitch2(config)#interface fastEthernet 0/1

CiscoSwitch2(config-if)#switchport mode access

CiscoSwitch2(config-if)#switchport access vlan 4

CiscoSwitch2(config-if)#exit

CiscoSwitch2(config)#interface fastEthernet 0/2

CiscoSwitch2(config-if)#no shutdown

CiscoSwitch2(config-if)#switchport mode access

CiscoSwitch2(config-if)#switchport access vlan 5

CiscoSwitch2(config-if)#exit

CiscoSwitch2(config)#interface gigabitEthernet 0/1

CiscoSwitch2(config-if)#switchport mode trunk

CiscoSwitch2(config-if)#switchport trunk allowed vlan all

CiscoSwitch2(config-if)#end

CiscoSwitch2#show vlan brief

CiscoSwitch2#show interface trunk

CiscoSwitch2#write

Switch>enable

Switch#configure terminal

Switch(config)#hostname GatewaySwitch

GatewaySwitch(config)#no ip domain lookup

GatewaySwitch(config)#ip routing

GatewaySwitch(config)#vlan 1

GatewaySwitch(config-vlan)#vlan 2

GatewaySwitch(config-vlan)#vlan 3

GatewaySwitch(config-vlan)#vlan 4

GatewaySwitch(config-vlan)#vlan 5

GatewaySwitch(config-vlan)#exit

GatewaySwitch(config)#interface vlan 1

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#ip address 192.168.1.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 2

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#ip address 192.168.2.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 3

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#ip address 192.168.3.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 4

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#ip address 192.168.4.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface vlan 5

GatewaySwitch(config-if)#no shutdown

GatewaySwitch(config-if)#ip address 192.168.5.254 255.255.255.0

GatewaySwitch(config-if)#exit

GatewaySwitch(config)#interface range fastEthernet 0/1 ,fas 0/2

GatewaySwitch(config-if-range)#no shutdown

GatewaySwitch(config-if-range)#switchport trunk encapsulation dot1q

GatewaySwitch(config-if-range)#switchport mode trunk

GatewaySwitch(config-if-range)#switchport trunk allowed vlan all

GatewaySwitch(config-if-range)#end

GatewaySwitch#show vlan brief

GatewaySwitch#show interface trunk

GatewaySwitch#write

Router>enable

Router#configure terminal

Router(config)#hostname CiscoRouter

CiscoRouter(config)#no ip domain lookup

CiscoRouter(config)#interface gigabitEthernet 0/1

CiscoRouter(config-if)#no shutdown

CiscoRouter(config-if)#ip address 192.168.6.2 255.255.255.0

CiscoRouter(config-if)#exit

CiscoRouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.6.1

CiscoRouter(config)#interface gigabitEthernet 0/0

CiscoRouter(config-if)#no shutdown

CiscoRouter(config-if)#ip address 192.168.7.254 255.255.255.0

CiscoRouter(config-if)#end

CiscoRouter#write


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Cisco 2821路由器密码恢复(自己查不到,才写文章,让其他达达不需要像我一样花费那么多时间)(cisco是什么牌子)
下一篇:详解Spring Boot中如何自定义SpringMVC配置
相关文章

 发表评论

暂时没有评论,来抢沙发吧~