enable conf t hostname S2 no ip domain-lookup enable secret class line console 0 password cisco login logging synchronous exit line vty 0 15 password cisco login exit ip routing ip route 0.0.0.0 0.0.0.0 10.0.0.1 vlan 10 name VLAN_A vlan 20 name VLAN_B interface Vlan10 ip address 192.168.1.1 255.255.255.0 ip helper-address 10.0.0.1 no shut interface Vlan20 ip address 192.168.2.1 255.255.255.0 ip helper-address 10.0.0.1 no shut interface g0/0 switchport mode access switchport access vlan 10 no shutdown interface g0/1 switchport mode access switchport access vlan 20 no shutdown interface g0/2 switchport mode trunk switchport trunk allowed vlan 10,20 no shutdown end copy running-config startup-config