Use the following commands to configure the fixed router port with IP address 10.20.30.40 and subnet mask 255.255.0.0:
Gxxx-001# interface fastethernet 10/3
Gxxx-001(if:FastEthernet 10/3)# ip address 10.20.30.40 255.255.0.0
Done!
Use the following commands to create VLAN 2 on the switching interface and configure it with IP address 10.30.50.70 and subnet mask 255.255.0.0:
Gxxx-001# interface Vlan 2
Gxxx-001(if:Vlan 2)# ip address 10.30.50.70 255.255.0.0
Done!