1.直接在物理端口上设置IP地址. int f1/0/1 port link-mode route #链路模式采用路由 ip add 192.168.10.1 24 ospf network0type p2p #OSPF采用点到点 2.通过逻辑VLAN设置IP地址,先给VLAN设置IP,然后将物理端口配置在VLAN下 int vlan 100 ip add 192.168.10.1 24 ospf network0type p2p int g1/0/1 port link-mode route
一.实验拓扑 二.实验步骤 1.给主机设置IP,网关:给交换机划分VLAN,给VLAN划分端口,给VLAN设置IP 2.启用OSPF.宣告网段(network 网络地址 反掩码 区域名 其中0区域为主干区域) ▲SwitchA 的相关配置 Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per li
<HUAWEI> display ip interface brief,命令全局模式下可以查看所有端口下的ip地址及物理状态display this interface,命令用来显示当前接口视图下的接口信息.display this,端口界面下显示接口配置(如:[interface 0/0/1]display this)display port vlan,查看所有端口vlan类型.IDdisplay ip interface brief vlanif 10,查看vlanif10下的端口状态及i