网络协议配置命令
网络协议配置命令
目录 目录 第1章P寻址配置命令 址配置命令 1.1.1arp 1.1.2 arp time 1.1.3 clear arp-cache 1.1.4 ip address 11123455 1.1.5 ip directed-broadcast.... 1.1.6 ip forward-protocol udp 1.1.7 ip helper-address 1.1.8 ip host 1.1.9 ip proxy-arp 1.1.10 ip unnumbered 1.1.11 keepalive 1.1.12 show arp... 1.1.13 show hosts 1.1.14 show ip interface 第2章NAT配置命令 21NAT配置命令 2.1.1 ip nat. 2.1.2 ip nat local-service 90122555678 2.1.3 ip nat inside destination 2.1.4 ip nat inside source 2.1.5 ip nat outside source 2.1.6 ip nat pool 2.1.7 ip nat service 2.1.8 ip nat translation 2.1.9 ip nat translation max-users 2.1.10 clear ip nat statistics 2.1.11 clear ip nat translation 29 2.1.12 show ip nat statistics 30 2.1.13 show ip nat translations.... 2.1.14 show ip nat users 2.1.15 debug ip nat. 第3章 DHCP Client配置命令 36 31 DHCP Client配置命令 3.1.1 ip address dhcp 3.1.2 ip dhcp client 3.1.3 ip dhcp-server 38 3.1.4 show dhcp lease 39 3.1.5 show dhcp server 3.1.6 debug dhcp
目录 目 录 第 1 章 IP 寻址配置命令................................................................................................................................................ 1 1.1 IP 寻址配置命令................................................................................................................................................ 1 1.1.1 arp ............................................................................................................................................................. 1 1.1.2 arp timeout ................................................................................................................................................ 2 1.1.3 clear arp-cache.......................................................................................................................................... 3 1.1.4 ip address.................................................................................................................................................. 4 1.1.5 ip directed-broadcast................................................................................................................................. 5 1.1.6 ip forward-protocol udp.............................................................................................................................. 5 1.1.7 ip helper-address....................................................................................................................................... 6 1.1.8 ip host........................................................................................................................................................ 7 1.1.9 ip proxy-arp ............................................................................................................................................... 8 1.1.10 ip unnumbered ........................................................................................................................................ 9 1.1.11 keepalive ............................................................................................................................................... 10 1.1.12 show arp................................................................................................................................................ 11 1.1.13 show hosts ............................................................................................................................................ 12 1.1.14 show ip interface ................................................................................................................................... 12 第 2 章 NAT 配置命令................................................................................................................................................... 15 2.1 NAT 配置命令................................................................................................................................................... 15 2.1.1 ip nat........................................................................................................................................................ 15 2.1.2 ip nat local-service................................................................................................................................... 16 2.1.3 ip nat inside destination........................................................................................................................... 17 2.1.4 ip nat inside source ................................................................................................................................. 18 2.1.5 ip nat outside source ............................................................................................................................... 21 2.1.6 ip nat pool................................................................................................................................................ 23 2.1.7 ip nat service ........................................................................................................................................... 24 2.1.8 ip nat translation...................................................................................................................................... 25 2.1.9 ip nat translation max-users .................................................................................................................... 27 2.1.10 clear ip nat statistics.............................................................................................................................. 27 2.1.11 clear ip nat translation ........................................................................................................................... 29 2.1.12 show ip nat statistics ............................................................................................................................. 30 2.1.13 show ip nat translations......................................................................................................................... 31 2.1.14 show ip nat users .................................................................................................................................. 33 2.1.15 debug ip nat........................................................................................................................................... 34 第 3 章 DHCP Client 配置命令...................................................................................................................................... 36 3.1 DHCP Client 配置命令...................................................................................................................................... 36 3.1.1 ip address dhcp....................................................................................................................................... 36 3.1.2 ip dhcp client ........................................................................................................................................... 37 3.1.3 ip dhcp-server.......................................................................................................................................... 38 3.1.4 show dhcp lease...................................................................................................................................... 39 3.1.5 show dhcp server .................................................................................................................................... 40 3.1.6 debug dhcp.............................................................................................................................................. 41 - I -
目录 第4章 DHCP Sever配置命令 41 DHCPD配置命令 4.1.1 ip dhcpd ping packet 4.1.2 ip dhcpd ping timeout 4.1.3 ip dhcpd write-time 4.1.4 ip dhcpd pool 4.1.5 ip dhcpd enable 4.1.6 ip dhcpd disable 42 DHCPD地址池的配置命令 4.2.1 network 44566448 4.2.2 range 4.2.3 default-router 4.2.4 dns-server 4.2.5 domain-name 4.2.6 lease 4.2.7 netbios-name-server 4.2.8 host. 4.2.9 hardware-address 4.2.10 client-identifier 4.2.11 client-name 43 DHCPD的调试命令 051233455 4.3.1 debug ip dhcpd packet 4.3.2 debug ip dhcpd event 4.4 DHCPD的管理命令 44.1 show ip dhcpd statistic…… 4.4.2 show ip dhcpd binding 4.4.3 show ip dhcpd pool 4.4. 4 clear ip dhcpd statistic 67759 4.4.5 clear ip dhcpd binding 4.4.6 clear ip dhcpd abandoned 第5章P服务配置命令 51| P Server配置命令 5.11 clear top.… 5.1.2 clear tcp statistic 5.1.3 debug arp 5.1.4 debug ip icmp 5.1.5 debug ip packet. 5.1.6 debug ip ra 5.1.7 debug ip rtp 5.1.8 debug ip tcp packet 5.1.9 debug ip tcp transaction 5.1.10 debug ip udp 5.1.11 ip mask-reply ““““ 6824798228 5.1.12 ip mtu 5.1.13 ip redirects
目录 第 4 章 DHCP Sever 配置命令 ..................................................................................................................................... 43 4.1 DHCPD 配置命令............................................................................................................................................. 43 4.1.1 ip dhcpd ping packet ............................................................................................................................... 43 4.1.2 ip dhcpd ping timeout .............................................................................................................................. 44 4.1.3 ip dhcpd write-time .................................................................................................................................. 44 4.1.4 ip dhcpd pool........................................................................................................................................... 45 4.1.5 ip dhcpd enable....................................................................................................................................... 46 4.1.6 ip dhcpd disable ...................................................................................................................................... 46 4.2 DHCPD 地址池的配置命令............................................................................................................................ 47 4.2.1 network.................................................................................................................................................... 47 4.2.2 range ....................................................................................................................................................... 48 4.2.3 default-router........................................................................................................................................... 49 4.2.4 dns-server ............................................................................................................................................... 49 4.2.5 domain-name .......................................................................................................................................... 50 4.2.6 lease........................................................................................................................................................ 51 4.2.7 netbios-name-server ............................................................................................................................... 51 4.2.8 host.......................................................................................................................................................... 52 4.2.9 hardware-address ................................................................................................................................... 53 4.2.10 client-identifier ....................................................................................................................................... 53 4.2.11 client-name............................................................................................................................................ 54 4.3 DHCPD 的调试命令......................................................................................................................................... 55 4.3.1 debug ip dhcpd packet ............................................................................................................................ 55 4.3.2 debug ip dhcpd event.............................................................................................................................. 55 4.4 DHCPD 的管理命令......................................................................................................................................... 56 4.4.1 show ip dhcpd statistic ............................................................................................................................ 56 4.4.2 show ip dhcpd binding............................................................................................................................. 57 4.4.3 show ip dhcpd pool.................................................................................................................................. 57 4.4.4 clear ip dhcpd statistic............................................................................................................................. 58 4.4.5 clear ip dhcpd binding ............................................................................................................................. 59 4.4.6 clear ip dhcpd abandoned....................................................................................................................... 59 第 5 章 IP 服务配置命令.............................................................................................................................................. 61 5.1 IP Server 配置命令........................................................................................................................................... 61 5.1.1 clear tcp................................................................................................................................................... 62 5.1.2 clear tcp statistics.................................................................................................................................... 63 5.1.3 debug arp ................................................................................................................................................ 64 5.1.4 debug ip icmp.......................................................................................................................................... 65 5.1.5 debug ip packet....................................................................................................................................... 68 5.1.6 debug ip raw............................................................................................................................................ 72 5.1.7 debug ip rtp ............................................................................................................................................. 74 5.1.8 debug ip tcp packet ................................................................................................................................. 77 5.1.9 debug ip tcp transactions ........................................................................................................................ 79 5.1.10 debug ip udp.......................................................................................................................................... 81 5.1.11 ip mask-reply ......................................................................................................................................... 82 5.1.12 ip mtu..................................................................................................................................................... 82 5.1.13 ip redirects............................................................................................................................................. 83 - II -
目录 5.1.14 ip route-cache 5.1.15 ip source- route.... 85 5.1.16 ip tcp synwait-time 86 5.1.17 ip tcp window-size 5.1.18 ip unreachables 5.1.19 show ip cache .188 5.1.20 show ip irdp 5.1.21 show ip sockets 5.122 show ip traffic…. 5.1.23 show tcp 5.1.24 show tcp brief 96 5.1.25 show tcp statistics 5.1.26 show tcp tch 52访问列表配置命令… 5.2.1 deny... 5.2.2 ip access-group 103 5.2. 4 permi 5.2.5 show ip access-list 458
目录 5.1.14 ip route-cache........................................................................................................................................ 84 5.1.15 ip source-route ...................................................................................................................................... 85 5.1.16 ip tcp synwait-time................................................................................................................................. 86 5.1.17 ip tcp window-size ................................................................................................................................. 87 5.1.18 ip unreachables..................................................................................................................................... 87 5.1.19 show ip cache........................................................................................................................................ 88 5.1.20 show ip irdp ........................................................................................................................................... 89 5.1.21 show ip sockets..................................................................................................................................... 90 5.1.22 show ip traffic ........................................................................................................................................ 91 5.1.23 show tcp ................................................................................................................................................ 92 5.1.24 show tcp brief ........................................................................................................................................ 96 5.1.25 show tcp statistics ................................................................................................................................. 97 5.1.26 show tcp tcb .......................................................................................................................................... 99 5.2 访问列表配置命令...................................................................................................................................... 100 5.2.1 deny....................................................................................................................................................... 100 5.2.2 ip access-group..................................................................................................................................... 103 5.2.3 ip access-list.......................................................................................................................................... 104 5.2.4 permit .................................................................................................................................................... 105 5.2.5 show ip access-list ................................................................................................................................ 108 - III -
04-网络协议配置命令 第1章IP寻址配置命令 1.1|P寻址配置命令 P寻址配置命令包括: ● arp timeout clear arp-cache ip address ip directed-broadcast ip forward-protocol udp ip helper-address ip he ip unnumbered keepalive show arp show hosts show ip interface 1.1.1arp 配置静态ARP映射,静态ARP映射会永久保留在ARP缓存中。如果要删除配置的静态 ARP映射的话,使用noap命令 arp ip-address hardware-address [alias] no arp ip-address 参数 参数说明 本地数据链路接口的IP地址
04-网络协议配置命令 第1章 IP 寻址配置命令 1.1 IP寻址配置命令 IP 寻址配置命令包括: z arp z arp timeout z clear arp-cache z ip address z ip directed-broadcast z ip forward-protocol udp z ip helper-address z ip host z ip proxy-arp z ip unnumbered z keepalive z show arp z show hosts z show ip interface 1.1.1 arp 配置静态 ARP 映射,静态 ARP 映射会永久保留在 ARP 缓存中。如果要删除配置的静态 ARP 映射的话,使用 no arp 命令。 arp ip-address hardware-address [alias] no arp ip-address 参数 参数 参数说明 ip-address 本地数据链路接口的IP地址。 - 1 -