华为s2300 48*换机,如何配置48口为进线口(其它47口,都化成47个vlan)
发布网友
发布时间:2022-04-26 13:45
我来回答
共3个回答
热心网友
时间:2023-10-09 20:00
就是把你48口做成上行端口,把你本交换机内的所有vlan都透传上去
比如一个交换机上划分有vlan 10 20 30 100这4个vlan,端口1-12口为vlan10,13-24为vlan20,25-36为vlan30,37-47为vlan100,48口为上行口
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/13
port link-type access
port default vlan 20
interface Ethernet0/0/25
port link-type access
port default vlan 30
interface Ethernet0/0/37
port link-type access
port default vlan 100
interface GigabitEthernet0/0/4注意因为s2300后面4口是千兆光口,有2个根据型号不同是光电互斥的所以在进入端口的编号可能不同
port link-type trunk
port trunk allow-pass vlan 10 20 30 100
//此时端口类型为trunk
热心网友
时间:2023-10-09 20:01
bo vlan1 to 47
int vlanif 48
ip add 192.168.1.2 24
interface Ethernet0/0/1
port link-type access
port default vlan 1
interface Ethernet0/0/2
port link-type access
port default vlan 2
interface Ethernet0/0/3
port link-type access
port default vlan 3
interface Ethernet0/0/4
port link-type access
port default vlan 4
interface Ethernet0/0/5
port link-type access
port default vlan 5
interface Ethernet0/0/6
port link-type access
port default vlan 6
interface Ethernet0/0/7
port link-type access
port default vlan 7
interface Ethernet0/0/8
port link-type access
port default vlan 8
interface Ethernet0/0/9
port link-type access
port default vlan 9
interface Ethernet0/0/10
port link-type access
port default vlan 10
interface Ethernet0/0/11
port link-type access
port default vlan 11
interface Ethernet0/0/12
port link-type access
port default vlan 12
interface Ethernet0/0/13
port link-type access
port default vlan 13
interface Ethernet0/0/14
port link-type access
port default vlan 14
interface Ethernet0/0/15
port link-type access
port default vlan 15
interface Ethernet0/0/16
port link-type access
port default vlan 16
interface Ethernet0/0/17
port link-type access
port default vlan 17
interface Ethernet0/0/18
port link-type access
port default vlan 18
interface Ethernet0/0/19
port link-type access
port default vlan 19
interface Ethernet0/0/20
port link-type access
port default vlan 20
interface Ethernet0/0/21
port link-type access
port default vlan 21
interface Ethernet0/0/22
port link-type access
port default vlan 22
interface Ethernet0/0/23
port link-type access
port default vlan 23
interface Ethernet0/0/24
port link-type access
port default vlan 24
interface Ethernet0/0/25
port link-type access
port default vlan 25
interface Ethernet0/0/26
port link-type access
port default vlan 26
interface Ethernet0/0/27
port link-type access
port default vlan 27
interface Ethernet0/0/28
port link-type access
port default vlan 28
interface Ethernet0/0/29
port link-type access
port default vlan 29
interface Ethernet0/0/30
port link-type access
port default vlan 30
interface Ethernet0/0/31
port link-type access
port default vlan 31
interface Ethernet0/0/32
port link-type access
port default vlan 32
interface Ethernet0/0/33
port link-type access
port default vlan 33
interface Ethernet0/0/34
port link-type access
port default vlan 34
interface Ethernet0/0/35
port link-type access
port default vlan 35
interface Ethernet0/0/36
port link-type access
port default vlan 36
interface Ethernet0/0/37
port link-type access
port default vlan 37
interface Ethernet0/0/38
port link-type access
port default vlan 38
interface Ethernet0/0/39
port link-type access
port default vlan 39
interface Ethernet0/0/40
port link-type access
port default vlan 40
interface Ethernet0/0/41
port link-type access
port default vlan 41
interface Ethernet0/0/42
port link-type access
port default vlan 42
interface Ethernet0/0/43
port link-type access
port default vlan 43
interface Ethernet0/0/44
port link-type access
port default vlan 44
interface Ethernet0/0/45
port link-type access
port default vlan 45
interface Ethernet0/0/46
port link-type access
port default vlan 46
interface Ethernet0/0/47
port link-type access
port default vlan 47
interface Ethernet0/0/48
port link-type trunk
port trunk allow-pass vlan 1 to 48
热心网友
时间:2023-10-09 20:01
interface f 1/0/48
port link-type trunk
port trunk allow-pass all
qu
然后建立47个vlan,把端口分配到对应vlan中即可