! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname wanrouter ! boot-start-marker boot-end-marker ! no logging console enable secret 5 $1$.Cp1$pAEFaGmfpwzxc4dWEasyb. ! no aaa new-model memory-size iomem 5 no ip icmp rate-limit unreachable ip cef ! ! no ip dhcp use vrf connected ip dhcp excluded-address 192.168.10.10 ip dhcp excluded-address 192.168.10.10 192.168.10.20 ! ip dhcp pool Pool1 network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 8.8.8.8 ! ! no ip domain lookup ! multilink bundle-name authenticated ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! macro name add_vlan end vlan database vlan $v exit @ macro name del_vlan end vlan database no vlan $v exit @ ! vtp file nvram:vlan.dat archive log config hidekeys ! ! ! ! ip tcp synwait-time 5 ! ! ! ! interface FastEthernet0/0 description *** Unused for Layer2 EtherSwitch *** ip address 192.168.20.3 255.255.255.0 ip access-group 100 in ip access-group 100 out ip nat outside ip nat enable ip virtual-reassembly duplex auto speed auto ! interface FastEthernet0/1 description lan ip address 192.168.10.1 255.255.255.0 ip access-group 100 in ip access-group 100 out ip nat inside ip nat enable ip virtual-reassembly duplex auto speed auto ! interface FastEthernet1/0 duplex full speed 100 ! interface FastEthernet1/1 duplex full speed 100 ! interface FastEthernet1/2 duplex full speed 100 ! interface FastEthernet1/3 duplex full speed 100 ! interface FastEthernet1/4 duplex full speed 100 ! interface FastEthernet1/5 duplex full speed 100 ! interface FastEthernet1/6 duplex full speed 100 ! interface FastEthernet1/7 duplex full speed 100 ! interface FastEthernet1/8 duplex full speed 100 ! interface FastEthernet1/9 duplex full speed 100 ! interface FastEthernet1/10 duplex full speed 100 ! interface FastEthernet1/11 duplex full speed 100 ! interface FastEthernet1/12 duplex full speed 100 ! interface FastEthernet1/13 duplex full speed 100 ! interface FastEthernet1/14 duplex full speed 100 ! interface FastEthernet1/15 duplex full speed 100 ! interface Vlan1 no ip address shutdown ! ip forward-protocol nd ip route 192.168.2.0 255.255.255.0 192.168.20.1 ! ! ip http server no ip http secure-server ip http path flash: ip nat inside source list 100 interface FastEthernet0/0 overload ! access-list 100 permit ip any any no cdp log mismatch duplex ! ! ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! banner exec  *************************************************************** This is a normal Router with a Switch module inside (NM-16ESW) It has been pre-configured with hard-coded speed and duplex To create vlans use the command "vlan database" in exec mode After creating all desired vlans use "exit" to apply the config To view existing vlans use the command "show vlan-switch brief" Alias(exec) : vl - "show vlan-switch brief" command Alias(configure): va X - macro to add vlan X Alias(configure): vd X - macro to delete vlan X ***************************************************************  alias configure va macro global trace add_vlan $v alias configure vd macro global trace del_vlan $v alias exec vl show vlan-switch brief ! line con 0 exec-timeout 0 0 privilege level 15 password 92Mustang logging synchronous login line aux 0 exec-timeout 0 0 privilege level 15 logging synchronous line vty 0 password 92Mustang login transport input ssh line vty 1 4 login ! ! end