You can use the
following information to set up Cisco Network Registrar in a trial
configuration. The configuration describes DHCP-related setup only; it does not
cover setting up DNS or configuring dynamic DNS (DDNS). You should be familiar
with important CNR concepts including scopes, primary and secondary scopes,
scope selection tags, client classes, and CNR policies. See the Using Network
Registrar publication for detailed information on these concepts.
In the trial
configuration, you can configure CNR to perform the following operations:
- Receive DHCP requests from a cable modem and a
PC on an HFC network via a port supporting multiple network numbers. The Cisco
cBR-8 router at the headend must be configured as a forwarder (iphelper is
configured).
- Serve IP addresses on two
networks; a net-10 network (non-Internet routable) and a net-24 network
(Internet routable).
- Tell the difference
between a cable modem and a PC based on the MAC address of the device and
provide net-24 addresses to the PC and net-10 addresses to the cable modem.
- Refuse to serve IP
addresses to MAC addresses that it does not recognize.
To perform these
options, you must implement the following CNR configuration items:
- Create two scope selection tags; one
for PCs, one for cable modems.
- Create two client-classes; one for
PCs , one for cable modems.
- Create a lease policy appropriate for
the cable modem devices.
- Create a lease policy appropriate for
the PC devices.
- Create a scope containing Class A
net-24 (routable) addresses.
- Create a scope containing Class A
net-10 (nonroutable) addresses.
- Identify the
scope containing the net-24 addresses as the primary scope and configure the
other scope containing the net-10 addresses as secondary to the net-24 scope.
 Note |
The Cisco cBR-8 router upstream
ports must be configured with the primary network address on the net-24
network; such as 24.1.1.1.
|
- Assign the
policies to the appropriate scope.
- Add the MAC
address of the cable modem and the PC to the client-entry list.
- Associate the PC
tag with the scope containing routable addresses.
- Associate the
cable modem tag with the scope containing nonroutable addresses.
- Associate the
cable modem tag with the cable modem client-class.
- Associate the PC
tag with the PC client-class.
- Assign the PC
MAC to the PC class.
- Assign the cable
modem MAC to the cable modem class.
- Enable
client-class processing.
Figure below shows
the trial CNR configuration in an HFC network.
Figure 2. Trial Configuration in an HFC Network
These configuration
items and their associations can be created using either the CNR management
graphical user interface (GUI) or command-line interface (CLI). The following
sample script configures DHCP for a sample server:
File: cabledemo.rc
Command line: nrcmd -C <cluster> -N <user name> -P <password> -b < cabledemo.rc
---------------------------------------------------------------------------------------
scope-selection-tag tag-CM create
scope-selection-tag tag-PC create
client-class create class-CM
client-class class-CM set selection-criteria=tag-CM
client-class create class-PC
client-class class-PC set selection-criteria=tag-PC
policy cmts-cisco create
policy cmts-cisco setleasetime 1800
policy cmts-cisco setoption domain-name-servers 192.168.10.2
policy cmts-cisco setoption routers 10.1.1.1
policy cmts-cisco setoption time-offset 604800
policy cmts-cisco setoption time-servers 192.168.10.20
policy cmts-cisco set packet-siaddr=192.168.10.2
policy cmts-cisco setoption log-servers 192.168.10.2
policy cmts-cisco setoption mcns-security-server 192.168.10.2
policy cmts-cisco set packet-file-name=golden.cfg
policy cmts-cisco set dhcp-reply-options=packet-file-name,packet-siaddr,mcns-security-server
policy pPC create
policy pPC set server-lease-time 1800
policy pPC setleasetime 1800
policy pPC setoption domain-name-servers 192.168.10.2
policy pPC setoption routers 24.1.1.1
scope S24.1.1.0 create 24.1.1.0 255.255.255.0
scope S24.1.1.0 addrange 24.1.1.5 24.1.1.254
scope S24.1.1.0 set policy=pPC
scope S24.1.1.0 set selection-tags=tag-PC
scope S10.1.1.0 create 10.1.1.0 255.255.255.0
scope S10.1.1.0 addrange 10.1.1.5 10.1.1.254
scope S10.1.1.0 set policy=cmts-cisco
scope S10.1.1.0 set selection-tags=tag-CM
scope S10.1.1.0 set primary-scope=S24.1.1.0
client 01:02:03:04:05:06 create client-class-name=class-PC
client ab:cd:ef:01:02:03 create client-class-name=class-CM
client default create action=exclude
dhcp enable client-class
dhcp enable one-lease-per-client
save
dhcp reload
In addition to the
DHCP server setup, you might want to enable packet-tracing. When packet-tracing
is enabled, the server parses both requests and replies, and then adds them to
the logs. If you do enable tracing, performance will be adversely affected, and
the logs will roll over quickly.
Use the following
nrcmd command to set packet tracing.
DHCP set
log-settings=incoming-packet-detail,outgoing-packet-detail
DHCP Relay Option (DOCSIS Option 82)
DOCSIS Option82 modifies DHCPDISCOVER packets to distinguish cable
interfaces from the CPE devices or “clients” behind them. The DOCSIS Option82
is comprised of the following two suboptions:
Type 1 (1 byte)
Len 4 (1 byte)
Value (8 bytes)
<bit 31,30,....................0)
<xYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY>
where the MSB indicates if the attached device is a cable interface.
x=1 Cable Modem REQ
x=0 CPE device (Behind the cable interface with the cable interface MAC
address shown in suboption 2.)
The rest of the bits make up the SNMP index to the CMTS interface.
Y=0xYYYYYYY is the SNMP index to the CMTS interface.
- Suboption 2, MAC address of
the cable interface:
Type 2 (1 byte)
Len 6 (1 byte)
Value xxxx.xxxx.xxxx (6 bytes)