Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7172991
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类:

2012-07-12 21:00:57

原文地址:DHCP 基本配置 作者:wfeng520

当前位置: > > >
DHCP 基本配置
时间:2010-07-15 16:16来源:未知 作者:admin 点击:212次
在PC的命令提示符上执行: C:/ipconfig/renew------ 更新IP地址 C:/ipconfig/all---------查看IP地址、WINS、DNS和域名信息 C:/ipconfig/release-----释放地址 /////////////////////////////////// R1(config)#service ? alignment Control alignment correction and logging compress-con

 

在PC的命令提示符上执行:
C:/ip/renew------ 更新IP地址
C:/ipconfig/all---------查看IP地址、WINS、DNS和域名信息
C:/ipconfig/release-----释放地址


///////////////////////////////////
R1(config)#service ?
alignment              Control alignment correction and logging
compress-config        Compress the nvram configuration file
config                 TFTP load config files
dhcp                   Enable DHCP server and relay agent
disable-ip-fast-frag   Disable IP particle-based fast fragmentation
exec-callback          Enable exec callback
exec-wait              Delay EXEC startup on noisy lines
finger                 Allow responses to finger requests
hide-telnet-addresses Hide destination addresses in telnet command
linenumber             enable line number banner for each exec
nagle                  Enable Nagle's congestion control algorithm
old-slip-prompts       Allow old scripts to operate with slip/ppp
pad                    Enable PAD commands
password-encryption    Encrypt system passwords
prompt                 Enable mode specific prompt
pt-vty-logging         Log significant VTY-Async events
sequence-numbers       Stamp logger messages with a sequence number
slave-log              Enable log capability of slave IPs
tcp-keepalives-in      Generate keepalives on idle incoming network
                         connections
tcp-keepalives-out     Generate keepalives on idle outgoing network
                         connections
tcp-small-servers      Enable small TCP servers (e.g., ECHO)
telnet-zeroidle        Set TCP window 0 when connection is idle
timestamps             Timestamp debug/log messages
udp-small-servers      Enable small UDP servers (e.g., ECHO)

R1(config)#service dhcp
R1(config)#no ip dhcp conflict
R1(config)#no ip dhcp conflict logging
R1(config)#ip dhcp pool ccie
R1(dhcp-config)#net 192.168.1.0/24
                               ^
% Invalid input detected at '^' marker.

R1(dhcp-config)#net 192.168.1.0 /24
% Ambiguous command: "net 192.168.1.0 /24"
R1(dhcp-config)#net 192.168.1.0 /24
% Ambiguous command: "net 192.168.1.0 /24"
R1(dhcp-config)#net               
R1(dhcp-config)#network ?
A.B.C.D Network number in dotted-decimal notation

R1(dhcp-config)#network 192.168.1.0?
A.B.C.D

R1(dhcp-config)#network 192.168.1.0 ?
/nn or A.B.C.D Network mask or prefix length

R1(dhcp-config)#network 192.168.1.0 /24
R1(dhcp-config)#domain
R1(dhcp-config)#domain-name cisco.com
R1(dhcp-config)#default

R1(dhcp-config)#default-router 192.168.1.2
R1(dhcp-config)#no defaule
R1(dhcp-config)#no defaulr
R1(dhcp-config)#no default
R1(dhcp-config)#no default-router 192.168.1.2
R1(dhcp-config)#default
R1(dhcp-config)#default-router 192.168.1.1
R1(dhcp-config)#net
R1(dhcp-config)#netbi
R1(dhcp-config)#netbios-name
R1(dhcp-config)#netbios-name-server 192.168.1.2
R1(dhcp-config)#dns
R1(dhcp-config)#dns-server 192.168.1.4
R1(dhcp-config)#option
R1(dhcp-config)#option 150 ip 192.168.1.3
R1(dhcp-config)#lease
R1(dhcp-config)#lease infinite
R1(dhcp-config)#ip dh cp excluded
R1(dhcp-config)#ip dh cp excluded
R1(dhcp-config)#ip dh cp excluded-
R1(dhcp-config)#ip dhcp excluded
R1(dhcp-config)#ip dhcp excluded-
R1(dhcp-config)#ip dhcp ?       
% Unrecognized command

R1(dhcp-config)#ip dhcp?
% Unrecognized command
R1(dhcp-config)#dhcp ?
% Unrecognized command
R1(dhcp-config)#exclu
R1(dhcp-config)#exclu
R1(dhcp-config)#exclu
R1(dhcp-config)#exclu?
% Unrecognized command
R1(dhcp-config)#?   
DHCP pool configuration commands:
accounting           Send Accounting Start/Stop messages
bootfile             Boot file name
client-identifier    Client identifier
client-name          Client name
default-router       Default routers
dns-server           DNS servers
domain-name          Domain name
exit                 Exit from DHCP pool configuration mode
hardware-address     Client hardware address
host                 Client IP address and mask
import               Programatically importing DHCP option parameters
lease                Address lease time
netbios-name-server NetBIOS (WINS) name servers
netbios-node-type    NetBIOS node type

network              Network number and mask
next-server          Next server in boot process
no                   Negate a command or set its defaults
option               Raw DHCP options
origin               Configure the origin of the pool
subnet               Subnet allocation commands
update               Dynamic updates
utilization          Configure various utilization parameters
vrf                  Associate this pool with a VRF

R1(dhcp-config)#exi
R1(config)#int f
% Incomplete command.

R1(config)#int f1/0
R1(config-if)#no sh
R1(config-if)#
*Nov 21 16:07:30.903: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Nov 21 16:07:31.903: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
R1(config-if)#int f1/1
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#
*Nov 21 16:07:46.107: %LINK-3-UPDOWN: Interface FastEthernet1/1, changed state to up
*Nov 21 16:07:47.107: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1, changed state to up
R1(config)#do sh ip dhcp pool

Pool ccie :
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
192.168.1.1          192.168.1.1      - 192.168.1.254     0
R1(config)#do sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
R1(config)





阅读(580) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~