DCN网络协议配置命令.pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《DCN网络协议配置命令.pdf》由会员分享,可在线阅读,更多相关《DCN网络协议配置命令.pdf(101页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 网网网网络络络络协协协协议议议议配配配配置置置置命命命命令令令令 神神神神州州州州数数数数码码码码网网网网络络络络有有有有限限限限公公公公司司司司 2 20 00 08 8 年年年年 8 8 月月月月 -I-神州数码网络有限公司神州数码网络有限公司目 录 第 1 章 IP寻址配置命令.1 1.1 IP寻址配置命令.1 1.1.1 arp.1 1.1.2 arp timeout.2 1.1.3 clear arp-cache.2 1.1.4 ip address.3 1.1.5 ip directed-broadcast.4 1.1.6 ip forward-protocol udp.4 1.
2、1.7 ip helper-address.5 1.1.8 ip host.6 1.1.9 ip proxy-arp.7 1.1.10 ip unnumbered.7 1.1.11 keepalive.8 1.1.12 show arp.9 1.1.13 show hosts.10 1.1.14 show ip interface.11 第 2 章 NAT配置命令.13 2.1 NAT配置命令.13 2.1.1 ip nat.13 2.1.2 ip nat local-service.14 2.1.3 ip fastaccess.14 2.1.4 ip fastnat 1to1.15 2.1.
3、5 ip nat inside destination.16 2.1.6 ip nat inside source.17 2.1.7 ip nat outside source.19 2.1.8 ip nat pool.21 2.1.9 ip nat service.22 2.1.10 ip nat translation.23 2.1.11 ip nat translation max-users不再支持.24 2.1.12 clear ip nat statistics.25 2.1.13 clear ip nat translation.26 2.1.14 show ip nat sta
4、tistics.27 2.1.15 show ip nat translations.29 2.1.16 show ip nat users不再支持.30 2.1.17 debug ip nat.31 第 3 章 DHCP Client配置命令.33 3.1 DHCP Client配置命令.33 3.1.1 ip address dhcp.33 3.1.2 ip dhcp client.34 3.1.3 ip dhcp-server.35 -II-神州数码网络有限公司神州数码网络有限公司3.1.4 show dhcp lease.36 3.1.5 show dhcp server.36 3.1
5、.6 debug dhcp.37 第 4 章 DHCP Sever配置命令.39 4.1 DHCPD配置命令.39 4.1.1 ip dhcpd ping packet.39 4.1.2 ip dhcpd ping timeout.39 4.1.3 ip dhcpd write-time.40 4.1.4 ip dhcpd database-agent.40 4.1.5 ip dhcp snooping arp.41 4.1.6 ip dhcp snooping information option format snmp-ifindex .41 4.1.7 ip dhcpd pool.42
6、4.1.8 ip dhcpd enable.43 4.2 DHCPD地址池的配置命令.43 4.2.1 network.43 4.2.2 range.44 4.2.3 default-router.44 4.2.4 dns-server.45 4.2.5 domain-name.45 4.2.6 lease.46 4.2.7 netbios-name-server.46 4.2.8 ip-bind.47 4.2.9 hardware-address.48 4.2.10 client-identifier.48 4.2.11 client-name.49 4.3 DHCPD的调试命令.49 4.
7、3.1 debug ip dhcpd packet.49 4.3.2 debug ip dhcpd event.50 4.4 DHCPD的管理命令.51 4.4.1 show ip dhcpd statistic.51 4.4.2 show ip dhcpd binding.51 4.4.3 show ip dhcpd pool.52 4.4.4 clear ip dhcpd statistic.52 4.4.5 clear ip dhcpd binding.53 4.4.6 clear ip dhcpd abandoned.53 第 5 章 IP服务配置命令.55 5.1 IP Server
8、配置命令.55 5.1.1 clear tcp.55 5.1.2 clear tcp statistics.56 5.1.3 debug arp.56 5.1.4 debug ip icmp.57 5.1.5 debug ip packet.60 5.1.6 debug ip raw.64 -III-神州数码网络有限公司神州数码网络有限公司5.1.7 debug ip rtp.65 5.1.8 debug ip tcp packet.68 5.1.9 debug ip tcp transactions.70 5.1.10 debug ip udp.72 5.1.11 ip mask-reply
9、.72 5.1.12 ip mtu.73 5.1.13 ip redirects.74 5.1.14 ip route-cache.74 5.1.15 ip source-route.75 5.1.16 ip tcp synwait-time.76 5.1.17 ip tcp window-size.77 5.1.18 ip unreachables.77 5.1.19 show ip cache.78 5.1.20 show ip irdp.79 5.1.21 show ip sockets.80 5.1.22 show ip traffic.80 5.1.23 show tcp.82 5.
10、1.24 show tcp brief.85 5.1.25 show tcp statistics.86 5.1.26 show tcp tcb.88 5.2 访问列表配置命令.89 5.2.1 deny.89 5.2.2 ip access-group.92 5.2.3 ip access-list.93 5.2.4 permit.94 5.2.5 show ip access-list.97 -1-神州数码网络有限公司神州数码网络有限公司第第1章章 IP 寻址配置命令寻址配置命令 1.1 IP寻址配置命令 1.1.1 arp 配置静态 ARP 映射,静态 ARP 映射会永久保留在 ARP
11、缓存中。如果要删除配置的静态 ARP 映射的话,使用 no arp 命令。arp vrf vrf-name ip-address hardware-address alias no arp vrf vrf-name ip-address 参数 参数 参数说明 Vrf-name(支持VRF的版本可选)VRF名称。ip-address 本地数据链路接口的IP地址。hardware-address 本地数据链路接口的物理地址。alias(可选)路由器回答对这一IP地址的ARP请求,就象是本身拥有这个IP地址。缺省 ARP 缓存中不存在永久的静态 ARP 映射。命令模式 全局配置态 使用说明 一般的主
12、机都可以支持动态 ARP 解析,所以一般不需要用户特地为主机配置静态 ARP映射。VRF 子命令指明该 arp 表项属于哪个 VRF。示例 下面的这条命令配置 IP 地址为 1.1.1.1 的主机的 MAC 地址为 00:12:34:56:78:90。arp 1.1.1.1 00:12:34:56:78:90 相关命令 clear arp-cache -2-神州数码网络有限公司神州数码网络有限公司1.1.2 arp timeout 配置 ARP 缓存中动态 ARP 表项的存在时间。如果要恢复到缺省值的话,使用 no arp timeout 或 default arp timeout 命令。ar
13、p timeout seconds no arp timeout default arp timeout 参数 参数 参数说明 seconds ARP缓存中动态ARP表项的存在时间(秒)。0 表示在这个接口动态解析得到的ARP缓存不会被超时释放。缺省 180 秒(3 分钟)命令模式 接口配置态 使用说明 如果在不使用 ARP 的接口上进行配置,则配置无效。show interface 命令将显示在这个接口上配置的 ARP 表项超时时间,显示如下:ARP type:ARPA,ARP timeout 00:03:00 示例 下面这条命令在接口 Ethernet 1/0 上配置动态 ARP 映射的生
14、存时间是 900 秒,以便使ARP 缓存更快地刷新。!interface ethernet 1/0 arp timeout 900!相关命令 show interface 1.1.3 clear arp-cache 清除所有动态 ARP 缓存。clear arp-cache -3-神州数码网络有限公司神州数码网络有限公司 参数 命令没有参数或关键字。命令模式 管理态 示例 下面的命令清除所有的动态 ARP 缓存。clear arp-cache 相关命令 arp 1.1.4 ip address 配置接口 IP 地址,同时设置网络掩码。目前已经不再严格区分 A,B,C 类 IP 地址,但是,不能
15、使用多播地址和广播地址(主机部分全“1”)。除了以太网,其它类型的多个接口可以在同一个网段上。但是,以太网接口所配置的网段不能和其它任意类型的接口相同,除了无编号接口。一个接口上一般都可以配置一个主地址和无限多个从属地址。从属地址只能在配置了主地址后才可以配置,从属地址全部删除之后才可以删除主地址。系统本身生成的 IP 报文,如果上层应用没有指定源地址,路由器将使用发出接口上配置的与网关在同一网段上的 IP 地址作为报文的源地址,如果不能确定这个 IP 地址(例如接口路由),则采用发出接口的主地址。如果一个接口没有配置 IP 地址,而且也不是无编号接口(unnumbered 接口),则这个接口
16、不处理 IP 报文。如果要删除 IP 地址,或者停止某个接口对 IP 报文的处理,可以使用 no ip address 命令清除接口上的某个或所有 IP 地址。ip address ip-address mask secondary no ip address ip-address mask no ip address 参数 参数 参数说明 ip-address IP 地址。mask IP 网络掩码。secondary(可选)指明配置的是IP从属地址,如果没有指明,则配置的是IP主地址。缺省 接口上不配置任何 IP 地址。命令模式 接口配置态 -4-神州数码网络有限公司神州数码网络有限公司 使
17、用说明 如果路由器在某个物理网段上配置了从属 IP 地址,其它同一物理网段上的系统也必须配置相同逻辑网段的从属地址,否则容易很快就引起路由循环。当使用 OSPF 协议时,要确保一个接口上的从属地址和它的主地址在同一个 OSPF area中。示例 下列命令在 ethernet1/0 接口上配置主地址 202.0.0.1,网络掩码 255.255.255.0,另外配置了两个 IP 从属地址 203.0.0.1 和 204.0.0.1。interface ethernet1/0 ip address 202.0.0.1 255.255.255.0 ip address 203.0.0.1 255.2
18、55.255.0 secondary ip address 204.0.0.1 255.255.255.0 secondary 1.1.5 ip directed-broadcast 转发 IP 定向广播,并将报文以物理广播的形式发送。ip directed-broadcast access-list-namer no ip directed-broadcast 参数 参数 参数说明 access-list-name(可选)访问表名称。如果定义了访问表,只有访问表允许的广播报文被转发。缺省 缺省情况下,不转发 IP 定向广播。命令模式 接口配置态 示例 下面的例子在接口 ethernet1/0
19、 上配置转发 IP 定向广播。!interface ethernet 1/0 ip directed-broadcast!1.1.6 ip forward-protocol udp 当接口上配置了 ip helper-address 后,用于指定对哪些 UDP 协议有限广播报文进行转发。-5-神州数码网络有限公司神州数码网络有限公司ip forward-protocol udp port no ip forward-protocol udp port default ip forward-protocol udp 参数 参数 参数说明 port(可选)需要被转发的UDP报文的目的端口。缺省 转
20、发 NETBIOS 名字服务(Name Service)报文。命令模式 全局配置态 使用说明 目前缺省转发 NETBIOS 名字服务报文,如果要求不转发 NETBIOS 名字服务报文,可以使用下列任一命令:no ip forward-protocol udp netbios-ns no ip forward-protocol udp 137 使用下面的命令停止转发所有 UDP 有限广播报文:no ip forward-protocol udp 示例 Router_config#ip forward-protocol udp 137 相关命令 ip helper-address 1.1.7 ip
21、 helper-address 将 IP 定向广播报文转发到命令指定的 IP 帮助地址,可以是单目或者是广播地址。每个接口可以配置多个帮助地址。ip helper-address address no ip helper-address address 参数 参数 参数说明 address IP 帮助地址。-6-神州数码网络有限公司神州数码网络有限公司缺省 未配置 IP 帮助地址。命令模式 接口配置态 使用说明 该命令在 X.25 接口上不起作用,因为路由器不能辨别出物理广播。示例 下面的命令在接口 ethernet1/0 上配置 IP 帮助地址 1.0.0.1。!interface ethe
22、rnet 1/0 ip helper-address 1.0.0.1 !相关命令 ip forward-protocol udp 1.1.8 ip host 定义静态主机名称地址映射。如果要删除主机名称地址映射,使用 no ip host 命令。ip host name address no ip host name 参数 参数 参数说明 name 主机名称。Address IP地址。缺省 没有配置任何映射。命令模式 全局配置态 示例 下面的例子配置 IP 地址为 202.96.1.3 的主机名称是 dns-server。ip host dns-server 202.96.1.3 -7-神州数
23、码网络有限公司神州数码网络有限公司1.1.9 ip proxy-arp 在接口上进行代理 ARP。如果要关闭这项功能,使用 no ip proxy arp 命令。ip proxy-arp no ip proxy-arp 参数 命令没有参数或关键字。缺省 进行代理 ARP。命令模式 接口配置态 使用说明 当路由器收到 ARP 请求时,如果路由器有到被请求 IP 地址的路由,且路由接口和收到请求的接口不同,路由器将以自己的 MAC 地址发出 ARP 响应,然后,在收到实际数据报文时,进行转发。这样,即使一台主机不完全了解网络的拓扑结构,或者没有配置准确的路由,也能和远端通信。对它来说,远端主机就和
24、它直接连接在同一个物理子网中。如果主机需要路由器提供这项服务,它和路由器必须在同一个 IP 网络中,或者,至少它的 IP 地址必须能够使路由器认为它们在同一个 IP 子网中,也就是说,可以使用不同的掩码。否则,路由器将不提供这项服务。示例 下面的例子在接口 ethernet1/0 上打开代理 ARP 功能:!interface ethernet 1/0 ip proxy-arp!1.1.10 ip unnumbered 配置一个接口为无编号接口,可以不配置 IP 地址就开启 IP 处理功能。要停止这个接口上的 IP 处理,使用 no ip unnumbered 命令。ip unnumbered
25、 type number no ip unnumbered 参数 参数 参数说明 type number 另一个配置了IP地址的接口的类型和编号。这个接口不可以是使用其它接口-8-神州数码网络有限公司神州数码网络有限公司IP地址的无编号接口。缺省 不启动这项功能。命令模式 接口配置态 使用说明 对于点到点链路接口来说,可以不配置独有的 IP 地址,而是使用这条命令在这个接口上启动 IP 处理,并指定借用其它接口上的有效 IP 地址作为这个接口发出报文的源地址,以便节省 IP 地址。这样的点到点接口称为无编号(unnumbered)接口。无编号接口上生成的 IP 报文,例如路由更新报文,将使用命
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- DCN 网络 协议 配置 命令
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内