两台交换机,一台3550 一台2950.在3550上配置一个vlan2,并把端口2分配给他!如果要使2950的断口1也属于这个vlan2.该如何在2950上配置!(trunk)
还有是不是只要在一台交换机上配置一个vlan,其他的交换机就自动知道这个vlan的存在?
刚学,什么都不知道
核心交换机上配置一个dhcp有什么用啊?
有关交换机之间vlan的问题~
答案:3 悬赏:0 手机版
解决时间 2021-02-11 01:15
- 提问者网友:我是我
- 2021-02-10 22:23
最佳答案
- 五星知识达人网友:白昼之月
- 2021-02-10 23:15
您好!Asker
两交换机之间的中继链接(trunk)的作用是让两台交换机上的相同VLAN之间通信的。
VTP(Vlan中继协议)可以通告相同作用域(VTP Domain)的交换机Vlan的个数以及属性。也就是您所说的“只要在一台交换机上配置一个vlan,其他的交换机就自动知道这个vlan的存在”。处于Client模式的的交换机学习Server模式的交换机
核心交换机配置DHCP是为了允许DHCP广播穿越Vlan,并到达DHCP服务器. 命令:ip helper-address
-----------------------------------------------------------------
附加我这里配置成功后交换机的输出:
c3550#show running-config
Building configuration...
Current configuration : 3034 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c3560
!
enable secret 5 $1$kP/1$A4zq3OjnkWOYsNy3eg6wk.
enable password 1234
!
no aaa new-model
ip subnet-zero
ip routing
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/3
switchport mode access
spanning-tree portfast
!
...(省略)
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
!
ip classless
no ip http server
!
!
control-plane
!
!
line con 0
line vty 0 4
password 12345
no login
line vty 5 15
password 12345
no login
!
!
End
c2950#show running-config
Building configuration...
Current configuration : 2926 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c2950
!
enable secret 5 $1$Y5yy$vTdMX80am6xKegIze9ZuV0
enable password 1234
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
switchport mode access
spanning-tree portfast
!
...(省略)
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
no ip route-cache
!
no ip http server
!
line con 0
line vty 0 4
password 12345
login
line vty 5 15
password 12345
login
!
!
End
c3550#show vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name : zjzlwtb
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x32 0xFF 0x7E 0xB7 0xFD 0x9B 0x0E 0xD0
Configuration last modified by 0.0.0.0 at 3-1-93 00:09:45
Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN interface found)
c2950#show vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 128
Number of existing VLANs : 7
VTP Operating Mode : Client
VTP Domain Name : zjzlwtb
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x32 0xFF 0x7E 0xB7 0xFD 0x9B 0x0E 0xD0
Configuration last modified by 0.0.0.0 at 3-1-93 00:09:45
可以E-mail我:zleihe@sina.com
两交换机之间的中继链接(trunk)的作用是让两台交换机上的相同VLAN之间通信的。
VTP(Vlan中继协议)可以通告相同作用域(VTP Domain)的交换机Vlan的个数以及属性。也就是您所说的“只要在一台交换机上配置一个vlan,其他的交换机就自动知道这个vlan的存在”。处于Client模式的的交换机学习Server模式的交换机
核心交换机配置DHCP是为了允许DHCP广播穿越Vlan,并到达DHCP服务器. 命令:ip helper-address
-----------------------------------------------------------------
附加我这里配置成功后交换机的输出:
c3550#show running-config
Building configuration...
Current configuration : 3034 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c3560
!
enable secret 5 $1$kP/1$A4zq3OjnkWOYsNy3eg6wk.
enable password 1234
!
no aaa new-model
ip subnet-zero
ip routing
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/3
switchport mode access
spanning-tree portfast
!
...(省略)
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
ip address 192.168.2.1 255.255.255.0
!
interface Vlan3
ip address 192.168.3.1 255.255.255.0
!
ip classless
no ip http server
!
!
control-plane
!
!
line con 0
line vty 0 4
password 12345
no login
line vty 5 15
password 12345
no login
!
!
End
c2950#show running-config
Building configuration...
Current configuration : 2926 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c2950
!
enable secret 5 $1$Y5yy$vTdMX80am6xKegIze9ZuV0
enable password 1234
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
switchport mode access
spanning-tree portfast
!
...(省略)
!
interface Vlan1
ip address 192.168.1.2 255.255.255.0
no ip route-cache
!
no ip http server
!
line con 0
line vty 0 4
password 12345
login
line vty 5 15
password 12345
login
!
!
End
c3550#show vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name : zjzlwtb
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x32 0xFF 0x7E 0xB7 0xFD 0x9B 0x0E 0xD0
Configuration last modified by 0.0.0.0 at 3-1-93 00:09:45
Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN interface found)
c2950#show vtp status
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 128
Number of existing VLANs : 7
VTP Operating Mode : Client
VTP Domain Name : zjzlwtb
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x32 0xFF 0x7E 0xB7 0xFD 0x9B 0x0E 0xD0
Configuration last modified by 0.0.0.0 at 3-1-93 00:09:45
可以E-mail我:zleihe@sina.com
全部回答
- 1楼网友:归鹤鸣
- 2021-02-11 01:00
交换机之间用TRUNK连接,在3550建VTP server ,2950为客户,在3550划分VLAN ,2950就可以学习到.
- 2楼网友:拾荒鲤
- 2021-02-10 23:29
先说下vlan的作用,vlan是交换机在逻辑上划分出来的广播域,用来划分网段,和隔离广播,处于不同vlan的终端不可以通信`除了启用3层交换机或者单臂路由外`
所有交换机的端口默认都处于vlan1,我看了配置,交换机a1口做了trunk,5,6口划入vlan2,其他端口都在vlan1,交换机b2口,8口做了trunk,5,6口划入vlan2,其他口都在vlan1`
说你遇到的问题,只把6口加入vlan2的话,那么eg属于vlan2,bf属于vlan1,当然会不通,如果只把5口加入vlan2,那么eg bf都属于vlan1,所以可以互通
我想这个实验应该是要求在路由a上f0/1做单臂路由,之后配置好ip,这样所有的终端都可以互通了`
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯