Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure address information such as IP for VPCS in GN3?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report