Configuring A Lan With DHCP and Vlans: "Switch Port Configurations" Section On Page 5-7
Configuring A Lan With DHCP and Vlans: "Switch Port Configurations" Section On Page 5-7
Configuring A Lan With DHCP and Vlans: "Switch Port Configurations" Section On Page 5-7
The Cisco 1800 series integrated services fixed-configuration routers support clients on both physical
LANs and virtual LANs (VLANs). The routers can use the Dynamic Host Configuration Protocol
(DHCP) to enable automatic assignment of IP configurations for nodes on these networks. Other
interfaces and configurations of the VLANs are described in the “Switch Port Configurations” section
on page 5-7.
DHCP
DHCP, which is described in RFC 2131, uses a client/server model for address allocation. As an
administrator, you can configure your Cisco 1800 integrated services fixed-configuration router to act as
a DHCP server, providing IP address assignment and other TCP/IP-oriented configuration information
to your workstations. DHCP frees you from having to manually assign an IP address to each client.
When you configure a DHCP server, you must configure the server properties, policies, and DHCP
options.
Note Whenever you change server properties, you must reload the server with the configuration data from the
Network Registrar database.
VLANs
The Cisco 1800 series integrated services routers (fixed) support eight Fast Ethernet ports on which you
can configure VLANs. See the “Switch Port Configurations” section on page 5-7 for a description of the
interfaces and features that can be configured on the switch ports and a link to a document containing
the configuration procedures.
VLANs enable networks to be segmented and formed into logical groups of users, regardless of the
user’s physical location or LAN connection.
Configuration Tasks
Perform the following tasks to configure this network scenario:
• Configure DHCP
Book Title
OL-xxxxx-xx 5-1
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure DHCP
• Configure VLANs
Note The procedures in this chapter assume you have already configured basic router features as well as
PPPoE or PPPoA with NAT. If you have not performed these configurations tasks, see Chapter 1, “Basic
Router Configuration,” Chapter 3, “Configuring PPP over Ethernet with NAT,” and Chapter 4,
“Configuring PPP over ATM with NAT” as appropriate for your router. See the Cisco IOS IP
Configuration Guide to assign an IP address to the ports.
Configure DHCP
Perform these steps to configure your router for DHCP operation, beginning in global configuration
mode:
Command Purpose
Step 1 ip domain name name Identifies the default domain that the router uses to
complete unqualified hostnames (names without a
Example: dotted-decimal domain name).
Router(config)# ip domain name smallbiz.com
Router(config)#
Step 3 ip dhcp excluded-address low-address Specifies IP addresses that the DHCP server
[high-address] should not assign to DHCP clients. In this
example, we are excluding the router address.
Example:
Router(config)# ip dhcp excluded-address
192.168.9.0
Step 4 ip dhcp pool name Creates a DHCP address pool on the router and
enters DHCP pool configuration mode. The name
Example: argument can be a string or an integer.
Router(config)# ip dhcp pool dpool1
Router(config-dhcp)#
Step 5 network network-number [mask | prefix-length] Defines subnet number (IP) address for the DHCP
address pool, optionally including the mask.
Example:
Router(config-dhcp)# network 10.10.0.0
255.255.255.0
Router(config-dhcp)#
Book Title
5-2 OL-xxxxx-xx
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure DHCP
Command Purpose
Step 6 import all Imports DHCP option parameters into the DHCP
portion of the router database.
Example:
Router(config-dhcp)# import all
Router(config-dhcp)#
Step 7 default-router address [address2...address8] Specifies up to 8 default routers for a DHCP client.
Example:
Router(config-dhcp)# default-router 10.1.1.1
Router(config-dhcp)#
Step 9 domain-name domain Specifies the domain name for a DHCP client.
Example:
Router(config-dhcp)# domain-name cisco.com
Router(config-dhcp)#
Configuration Example
The following configuration example shows a portion of the configuration file for the DCHP
configuration described in this chapter.
ip dhcp excluded-address 192.168.9.0
!
ip dhcp pool dpool1
import all
network 10.10.0.0 255.255.255.0
default-router 10.10.10.10
dns-server 192.168.35.2
domain-name cisco.com
!
ip domain name smallbiz.com
ip name-server 192.168.11.12
Book Title
OL-xxxxx-xx 5-3
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure DHCP
Pool dpool1 :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 0
Pending event : none
1 subnet is currently in the pool :
Current index IP address range Leased addresses
10.10.0.1 10.10.0.1 - 10.10.0.254 0
Message Received
BOOTREQUEST 0
DHCPDISCOVER 0
DHCPREQUEST 0
DHCPDECLINE 0
DHCPRELEASE 0
DHCPINFORM 0
Message Sent
BOOTREPLY 0
DHCPOFFER 0
DHCPACK 0
DHCPNAK 0
Router#
Book Title
5-4 OL-xxxxx-xx
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure VLANs
Configure VLANs
Perform these steps to configure VLANs on your router, beginning in global configuration mode:
Command Purpose
Step 1 vlan ? Enters VLAN configuration mode.
Example:
Router# config t
Router(config)#vlan ?
Router(config)#vlan
Step 2 ISL VLAN ID Adds VLANs, with identifiers ranging from
1- 4094.
Example:
Router(config)#vlan 2 For details about this command and additional
Router(config-vlan)# parameters that can be set, see the Cisco IOS
Switching Services Command Reference.
Step 3 exit Updates the VLAN database, propagates it throughout
the administrative domain, and returns to global
Example: configuration mode.
Router(config-vlan)#exit
Router(config)#
Book Title
OL-xxxxx-xx 5-5
Chapter 5 Configuring a LAN with DHCP and VLANs
Configure VLANs
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 1002 1003
1002 fddi 101002 1500 - - - - - 1 1003
1003 tr 101003 1500 1005 0 - - srb 1 1002
1004 fdnet 101004 1500 - - 1 ibm - 0 0
1005 trnet 101005 1500 - - 1 ibm - 0 0
Router#
Book Title
5-6 OL-xxxxx-xx
Chapter 5 Configuring a LAN with DHCP and VLANs
Switch Port Configurations
Figure 5-1 VLAN Configuration on the Cisco 1800 (Fixed) Router Showing Three VLAN
Segments
IP
IP
VLAN
VLAN11
IP
Voice
Switching VLAN 2 VLAN
router IP
VLAN33
VLAN
IP
IP
230551
Accounting VLAN
Other procedures for configuring the switch ports, including configuration examples and information on
the features and interfaces are in the Cisco HWIC-4ESW and HWIC-9ESW EtherSwitch Interface Cards
document on Cisco.com. See this document to configure the switch ports. The configuration procedures
described in this document are listed below.
Book Title
OL-xxxxx-xx 5-7
Chapter 5 Configuring a LAN with DHCP and VLANs
Switch Port Configurations
802.1x Authentication
The switch port determines whether a client is granted access to the network. In the default setting, the
port is in the unauthorized state. While in this state, the port disallows all ingress and egress traffic except
for 802.1x packets. When a client has successfully authenticated, the port changes to the authorized
state, allowing all traffic for the client to flow normally.
If a client that does not support 802.1x is connected to an unauthorized 802.1x port, the switch requests
the client’s identity. In this situation, the client does not respond to the request, the port remains in the
unauthorized state, and the client is not granted access to the network.
The 802.1x protocol supports authentication and full authentication, authorization, and accounting
[AAA] and RADIUS modes with port VLAN ID (PVID) and voice VLAN ID (VVID); and with VLAN
assignment with guest VLAN single and multi-host support on the Cisco 1800 (fixed) Configuration
Series.
Note These security features are not supported on the switch ports: Security Access Control Lists, IP Access
Control Lists (IP- ACLs) for Layer 2 ports, and VLAN ACLs Virtual ACLs.
Book Title
5-8 OL-xxxxx-xx
Chapter 5 Configuring a LAN with DHCP and VLANs
Switch Port Configurations
Layer 2 Interfaces
The integrated switch ports support Layer 2 switching across Ethernet ports based on Cisco IOS Catalyst
Software. They support simultaneous, parallel connections between Layer 2 Ethernet segments.
Switched connections between Ethernet segments last only for the duration of the packet. Different
connections can be made for different segments for the next packet. You can configure a range of Layer
2 interfaces, define a range macro, set the interface speed, set the duplex mode, and add a description for
the interface.
IP Multicast Switching
Multicast switching is Layer 3 switching. To configure Multicast switching, the maximum number of
configured VLANs must be less than or equal to 242. The maximum number of multicast groups is equal
to to the maximum number of VLANs.
You can configure your router to enable multi-cast switching globally, enable IP Protocol Independent
Multicast (PIM) on a Layer 3 interface, and verify the Multicast Layer 3 switching information.
Book Title
OL-xxxxx-xx 5-9
Chapter 5 Configuring a LAN with DHCP and VLANs
Switch Port Configurations
Note Per-Port enabling and disabling of unknown multicast and unicast packets is not supported on the Cisco
1800 (Fixed) configuration router.
Fallback Bridging
With Fallback Bridging, the switch bridges together two or more VLANs or routed ports, essentially
connecting multiple VLANs within one bridge domain.
To configure Fallback Bridging for a set of SVIs, the SVIs must be assigned to bridge groups. All bridges
in the same group belong to the same bridge domain. Each SVI can be assigned to only one bridge group.
IGMP Snooping
By default, IGMP Snooping is globally enabled on the switch ports. When globally enabled or disabled,
it is also enabled or disabled on all VLAN interfaces. It can be enabled and disabled on a per-VLAN
basis.
Note All of the procedures for configuring the switch ports, including configuration examples and information
on the features and interfaces are in the Cisco HWIC-4ESW and HWIC-9ESW EtherSwitch Interface
Cards document on Cisco.com. See this document to configure the switch ports.
Book Title
5-10 OL-xxxxx-xx