一个端口配置多个ip地址
[R2]interface Ethernet 0/0.1
[R2-Ethernet0/0.1]dot1q termination vid 100 10 //允许vlan12通过
[R2-Ethernet0/0.1]ip address 202.114.10.1 255.255.255.0 //配置子端口ip
[R2-Ethernet0/0.1]undo shutdown
[R2-Ethernet0/0.1]quit
[R2]interface Ethernet 0/0.2
[R2-Ethernet0/0.2]dot1q termination vid 100 20 //允许vlan20通过
[R2-Ethernet0/0.2]ip address 202.114.20.1 255.255.255.0 //配置子端口ip
[R2-Ethernet0/0.2]undo shutdown
[R2-Ethernet0/0.2]quit