It is useful to know some knowledge about vroip IP configuration commands. Here I will explain the instructions and specific steps of these commands. The IP address is divided into five categories. You can select an appropriate IP subnet based on the actual situation. In addition, when the host address is all 0 or all 1, it has a special effect and cannot be used as a general IP address.
Use a mask to identify the network number contained in the IP address. For example, if the IP address of the vro Ethernet port is 129.9.30.42 and the mask is 255.0.0, the IP address and the mask are used to identify the network number of the vro Ethernet interface as 129.9.0.0. In general, you can configure an IP address for an interface. To enable an interface of a router to be connected to multiple subnets, you can configure multiple IP addresses, one of which is the primary IP address, the rest are slave IP addresses. The router IP address of the Master/Slave address is configured as follows:
When a vroip IP is configured as the primary IP address, if an IP address already exists on the interface, the original primary IP address is deleted, sorted by the configured time, and the first configured IP address is increased from the primary IP address. When the slave IP address is configured, if there is no IP address on the interface, the IP address will automatically become the master IP address. When the deleted IP address is the current primary IP address, if there is a slave IP address, the first configuration of the router IP address is upgraded from the primary IP address in chronological order. In addition, all IP addresses configured for the vroip IP on each interface on the vro cannot be in the same subnet.
Example
Configure the primary IP address 129.102.0.1 for the interface Serial0 from the IP address 202.38.160.1. Quidway (config-if-Serial0) # ip address 129.102.0.1, Quidway (config-if-Serial0) # ip address 202.38.160.1 secondary.
Related commands
Ip route, show ip interface, show interface
Allow or disable api ip address negotiation.
[No] ip address negotiate
Default
By default, the api ip address negotiation is not allowed.
Command mode
Because PPP supports IP address negotiation, only when the interface encapsulates the Link Layer Protocol PPP can the negotiation of the interface IP address be set. Generally, you do not need to negotiate the router IP Address Configuration. In some special cases, if you access the ISP to access the Internet, the IP address of the interface connected to the ISP is allocated by the ISP through negotiation. After the router IP address is negotiated, you do not need to configure an IP address for the interface.
Example
Set the ip address of the interface Serial0 to be assigned by peer negotiation, Quidway (config-if-Serial0) # ip address negotiate
Related commands
Encapsulation ppp