device# configure terminal
device(config)# vlan 100
device(config)# interface ethernet 0/2
device(conf-if-eth-0/2)# switchport
device(conf-if-eth-0/2)# switchport mode trunk
device(conf-if-eth-0/2)# switchport mode trunk allowed vlan add 100
device(conf-if-eth-0/2)# route-only
device(conf-if-eth-0/2)# no shutdown device(conf-if-eth-0/2)# exit
device(conf-if-eth-0/2)# do show running-cocnfig interface ethernet 0/2 switchport switchport mode trunk switchport trunk allowed vlan add 100 route only no shutdown
device(conf-if-eth-0/2)# do show interface ethernet 0/2 Ethernet 0/2 is up, line protocol is up (connected) Hardware is Ethernet, address is 768e.f80a.033c Current address is 768e.f80a.033c …. Rate info: Input 0.001008 Mbits/sec, 0 packets/sec, 0.00% of line-rate Output 0.000252 Mbits/sec, 0 packets/sec, 0.00% of line-rate Route-Only Packets Dropped: 17 Time since last interface status change: 21:35:41
device(config)# interface ve 100
device(config-Ve-100)# ip address 10.2.2.2/24 device(config-Ve-100)# no shutdown
device(config-Ve-100)# do show running-config interface ve 100 interface Ve 100 ip proxy-arp ip address 10.2.2.2/24 no shutdown