Dynamic IP Setup
Printer friendly version
|
|
set nvram erase
|
This command clears the current config.
|
|
write
|
This command writes to NVRAM.
|
|
set password exec EXEC PASSWORD
|
This will be the password for exec level access to your router.
|
|
set password enable ENABLE PASSWORD
|
This will be the password for enable level access to your router.
|
|
set rip disable
|
Disables RIP config.
|
|
set tftp disable
|
Disables TFTP access to the router.
|
|
set snmp disable
|
Disables snmp for router.
|
|
set nat enable
|
Enables nat routing for router.
|
|
set web disable
|
This disables the web access interface for the router.
|
|
set web port 61000
|
this sets the router to use port 61000 for it's web interface. This is a guard against the Code Red / Nimda virii sweeping the internet.
|
|
set web remote 192.168.50.50
|
This sets what IP address the router will allow web access from. Yet another guard agains the Code Red / Nimda virii sweeping the internet.
|
|
set dhcp server enabled
|
Enables the DHCP server on the router.
|
|
set dhcp server pool 0 size 128
|
Sets the DHCP server to use upto 128 ip addresses.
|
|
set dhcp server pool 0 ip 192.168.200.2
|
This will be the first IP address in the DHCP pool that the DHCP server will assign to your computers.
|
|
set dhcp server pool 0 gateway 192.168.200.1
|
This will be the gateway address that the DHCP server will assign to your computers.
|
|
set dhcp server pool 0 mask 255.255.255.0
|
This will be the subnet mask that the DHCP server will assign to your computers.
|
|
set dhcp server pool 0 dns 166.102.165.11
|
This is the primary DNS server that the DHCP server will assign to your computers. In this example I am using Alltel's primary DNS server.
|
|
set dhcp server pool 0 sdns 166.102.165.13
|
This is the secondary DNS server that the DHCP server will assign to your computers. In this example I am using Alltel's secondary DNS server.
|
|
set ppp wan0-0 ipcp 0.0.0.0
|
Set the IP address for the DSL WAN interface This is your router's connection to your ISP. Leave this set to 0.0.0.0 to let the router obtain this automatically.
|
|
set ppp wan0-0 dns 0.0.0.0
|
This will set the DNS server that your router will use. Leave this set to 0.0.0.0 to let the router obtain this automatically.
|
|
set ppp wan0-0 login YOUR USERID
|
This is the userid assigned to you by your ISP. This setting is case sensative.
|
|
set ppp wan0-0 password YOUR PASSWORD
|
This is the password assigned to you by your ISP. This setting is case sensative.
|
|
set ppp restart enable
|
This setting will allow the router to reset it's PPP connection automatically should it drop.
|
|
set int eth0 address 192.168.200.1
|
This sets your router's ethernet interface IP address.
|
|
set int eth0 mask 255.255.255.0
|
This sets your router's ethernet interface subnet mask.
|
|
set prompt PROMPT
|
This will allow you to set your CBOS prompt.
|
|
set int eth0 speed auto
|
This will allow your router to auto-negotiate it's port speed for 10Mbit/100Mbit and half-duplex/full-duplex, leave this set to auto otherwise the router will not have the correct port speed.
|
|
write
|
This writes the current config to NVRAM.
|
|
reboot
|
This reboots the router.
|