How to configure address information such as IP for VPCS in GN3?
Experimental topology diagram
Before the experiment, set up router R1 and turn on the DHCP function
R1#configure terminal
R1 (config) # interface fastEthernet 0Universe 0
R1 (config-if) # ip address 192.168.1.1 255.255.255.0
R1 (config-if) # no shutdown
R1 (config-if) # exit
R1 (config) # ip dhcp pool DHCPServer
R1 (dhcp-config) # network 192.168.1.0 255.255.255.0
R1 (dhcp-config) # default-router 192.168.1.1
R1 (dhcp-config) # dns-server 114.114.114.114
R1 (dhcp-config) # exit
R1 (config) # ip dhcp excluded-address 192.168.1.1
Configure the IP address command of the added PC in GN3
1. Set IP manually
PC-1 > ip 192.168.1.2 Plus 24 192.168.1.1 # configure IP and subnet mask
PC-1 > ip 192.168.1.2 255.255.255.0 192.168.1.1 # function same as above
PC-1 > ip dns 114.114.114.114 # configure DNS
PC-1 > show ip # View IP configuration information
NAME: PC-1 [1]
IP/MASK: 192.168.1.2/24
GATEWAY: 192.168.1.1
DNS: 114.114.114.114
MAC: 00:50:79:66:68:00
LPORT: 10008
RHOST:PORT: 127.0.0.1:10009
MTU:: 1500
PC-1 > save # Save configuration settings
2. DHCP automatically acquires IP
PC-2 > dhcp # enable DHCP automatic acquisition
DDORA IP 192.168.1.3 IP information automatically acquired by 24 GW 192.168.1.1 / / when enabled
PC-2 > show ip # View IP configuration information
NAME: PC-2 [1]
IP/MASK: 192.168.1.3/24
GATEWAY: 192.168.1.1
DNS: 114.114.114.114
DHCP SERVER: 192.168.1.1
DHCP LEASE: 86390, 86400/43200/75600
MAC: 00:50:79:66:68:01
LPORT: 10010
RHOST:PORT: 127.0.0.1:10011
MTU:: 1500
PC-2 > save # Save configuration settings
The test results are as follows: