<返回更多

小白学交换机配置

2023-04-03  今日头条  炖炖乐
加入收藏

按一下命令操作并理解

1.配置设备间互联地址 (<H3C> SYS 进入[h3c] 再配置命令)

=====SWA==========

#

sysname SWA

#

vlan 10

description 10.1

#

interface Vlan-interface10

ip address 192.168.10.254 255.255.255.0

#

interface GigabitEthe.NET1/0/3

port access vlan 10

#

=======================================

2.创建vlan网关

=================================

#

vlan 100

#

interface Vlan-interface100

ip address 192.168.100.254 255.255.255.0

#

interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/2

port access vlan 100

#

==========结果PC3========

pc 随意配置好相应网段地址,想一下可用地址

<H3C>ping 192.168.10.1

Ping 192.168.10.1 (192.168.10.1): 56 data bytes, press CTRL_C to break

56 bytes from 192.168.10.1: icmp_seq=0 ttl=255 time=0.836 ms

56 bytes from 192.168.10.1: icmp_seq=1 ttl=255 time=1.238 ms

56 bytes from 192.168.10.1: icmp_seq=2 ttl=255 time=0.677 ms

56 bytes from 192.168.10.1: icmp_seq=3 ttl=255 time=0.819 ms

56 bytes from 192.168.10.1: icmp_seq=4 ttl=255 time=1.038 ms

===============SWB============

#

sysname SWB

#

vlan 10

description 10.2

#

interface Vlan-interface10

ip address 192.168.10.2 255.255.255.0

#

interface GigabitEthernet1/0/3

port access vlan 10

#

声明:本站部分内容来自互联网,如有版权侵犯或其他问题请与我们联系,我们将立即删除或处理。
▍相关推荐
更多资讯 >>>