• WAN Interface: The configuration for the WAN interface is very basic due to the need for encapsulation.
interface GigabitEthernet0/0
no ip address
load-interval 30
duplex full
speed 1000
no cdp enable• Create and Configure VLAN2: In order to communicate with the Optical Network Terminal (ONT) your switch ports must also be on VLAN2, otherwise your end devices will not be able to communicate with Google’s network.
interface Vlan2
ip address 192.168.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly in• Assign switch ports to VLAN2: This will allow any device connected to the configured switch ports to access the internet. (Individually)
interface GigabitEthernet0/1/0
switchport access vlan 2
no ip address(or port range)
Router(config)#interface range g0/1/0-7
Router(config-if-range)#switchport access vlan 2• 802.1Q Encapsulated Sub-Interface: Without this, your WAN interface will not be able to communicate with the G Network and associated with VLAN2
interface GigabitEthernet0/0.2
encapsulation dot1Q 2
no ip dhcp client request dns-nameserver
ip address dhcp
ip nbar protocol-discovery
ip nat outside
ip virtual-reassembly in
no cdp enable• QoS: If you only want approximately 90% of your download, and 10% of your upload speeds, then you can skip this. Otherwise, you may really want to enable this.
class-map match-all cmap-match-dhcp
match protocol dhcp
policy-map tag_out_to_google_fiber
class cmap-match-dhcp
set cos 2
class class-default
set cos 3• QoS (Continued): Set service policy on the sub-interface to enable QoS.
interface GigabitEthernet0/0.2
service-policy output tag_out_to_google_fiber• DHCP: Pick your own network and excluded address range, but be mindful of the IP address that you set for vlan2.
ip dhcp excluded-address 192.168.0.1 192.168.0.99
ip dhcp pool DHCPPOOLNAME
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 192.168.0.1• NAT: Just know that this is important if you want your router to communicate outside of your network. (More information about Network Address Translation.)
ip nat inside source list 1 interface GigabitEthernet0/0.2 overload• Bonus – Port Forwarding: This will also be required if you are running a service that you would like to be available to external networks.
ip nat inside source static tcpYou should now be fully connected to your Google Fiber connection! 🙂interface GigabitEthernet0/0.2