Router configuration (commonly used)
Basic functional configuration of 1.DHCP
Service dhcp
Ip dhcp pool xxxx/24, this is the address pool to be assigned.
Network xxx.xxx.xxx subnet mask, which is the subnet mask to be assigned to the client
Default-router xxx.xxx.xxx.xxx defines the gateway address to be assigned
Dns-server xxx.xxx.xxx.xxx specifies the location of the dns server
Ip dhcp excluded-address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx specifies a client address that cannot be assigned.
Show ip dhcp binding views hosts bound to dhcp
two。 There are times when a router needs to be configured as a DHCP client.
Note: in this case, it is only used when the boundary is connected to the isp.
Interface f0/0
Ip add dhcp
Done.
3.DHCP can be relayed.
1NAT
At 1:1, the port corresponding to one public network and one private network address in nat will appear.
Pool dynamic conversion is also one-to-one.
PAT is port-based and overloads NAT (one port is mapped to each intranet)