图一设置主IP地址,点击高级。

图一
图二添加第二个IP地址。

图二
华为交换机设置interface Vlanif102
ip address 192.168.101.254 255.255.255.0
ip address 192.168.102.254 255.255.255.0 sub
dhcp select interface
#
return
-------以上设置vlan102接口,第二个地址后要加sub,不然加不上去。-----
[SW1-GigabitEthernet0/0/3]dis th
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 102
#
return
--------------------------------------------------------------------------------
PC结果见下图:
注意:如何在三层交换添加路由,请自行研究,本文档只是提供一个方法。相信你能通过这个方法能解决很多问题。
关键词:电脑如何设置两个IP(电脑如何设置两个屏幕)