Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Router configuration (commonly used)

Shulou Source: shulou.com Published: 2022-06-01 02:21:59 10月04日 Update

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)

Tags: Address assignment customer client Port configuration time Subnet Route Router one-to-one Host location function dynamic situation Server Gateway Border Public Network Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information MySQL Redmi Shulou Technology macOS