shuyu5433 发表于 2024-12-1 13:15:21

有偿

有4个部门连接到交换机中,各个部门主机192.168.10.2/192.168.10.3,192.168.20.2/192.168.20.3,192.168.30.2/192.168.30.3,192.168.40.2/192.168.40.3,现在把192.168.10.2、192.168.20.2、192.168.30.2、192.168.40.2放在一个vlan,要求这个vlan中的主机能通讯,也就是能ping通

PetrelBlog 发表于 2024-12-1 18:48:26

ip add ip地址sub

18370139645 发表于 2024-12-1 23:18:42

# interface Vlanif2ip address 192.168.10.2 255.255.255.0ip address 192.168.20.2 255.255.255.0 subip address 192.168.30.2 255.255.255.0 subip address 192.168.40.2 255.255.255.0 sub #

18370139645 发表于 2024-12-1 23:18:58

# interface Vlanif2ip address 192.168.10.2 255.255.255.0ip address 192.168.20.2 255.255.255.0 subip address 192.168.30.2 255.255.255.0 subip address 192.168.40.2 255.255.255.0 sub #

18370139645 发表于 2024-12-1 23:19:24

#
interface Vlanif2
ip address 192.168.10.2 255.255.255.0
ip address 192.168.20.2 255.255.255.0 sub
ip address 192.168.30.2 255.255.255.0 sub
ip address 192.168.40.2 255.255.255.0 sub
#

18370139645 发表于 2024-12-1 23:19:30

#
interface Vlanif2
ip address 192.168.10.2 255.255.255.0
ip address 192.168.20.2 255.255.255.0 sub
ip address 192.168.30.2 255.255.255.0 sub
ip address 192.168.40.2 255.255.255.0 sub
#

soulhouse 发表于 2024-12-3 14:45:15


#
interface Vlanif2
ip address 192.168.10.2 255.255.255.0
ip address 192.168.20.2 255.255.255.0 sub
ip address 192.168.30.2 255.255.255.0 sub
ip address 192.168.40.2 255.255.255.0 sub
#

acecttgd 发表于 2024-12-5 08:32:52

要做路由。
因为虽然在一个VLAN里,交换机放行了,但掩码是不允许PING通过的。只会去找网关。
或者把所有掩码改了,改成255.255.0.0

hongsupeng 发表于 2024-12-7 00:03:51

一个VLAN=一个子网=一个部门
页: [1]
查看完整版本: 有偿