Dahua DH-PFS6428-24T Cli Configuration Manual page 68

L3 manage switch
Table of Contents

Advertisement

switch(config)# interface vlan2
switch(config-vlanif2)# ip address 192.168.2.1/24
switch(config-vlanif2)# exit
switch(config)# interface G2
switch(config-G2)# switchport mode access
switch(config-G2)# switchport pvid 2
switch(config-G2)#exit
switch(config)# ip route 192.168.3.0/24 192.168.2.2 2
sw2:
switch# configure terminal
switch(config)# interface vlan1
switch(config-vlanif1)# ip address 192.168.3.1/24
switch(config-vlanif1)# exit
switch(config)# interface vlan2
switch(config-vlanif2)# ip address 192.168.2.2/24
switch(config)# interface G2
switch(config-G2)# switchport mode access
switch(config-G2)# switchport pvid 2
switch(config-G2)#exit
switch(config)# ip route 192.168.1.0/24 192.168.2.1 2
pc1:
ip 192.168.1.100 gateway 192.168.1.1
Pc2:
ip 192.168.3.100 gateway 192.168.3.1
phenomenon:
pc1 ping pc2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents