View Interface Summary information
dis ip int brief
display the current configuration information
dis cu (current-configuration)
Displays the current port configuration
dis this
entry port
int GE0 / 1 (gi 0/1)
to configure the IP address
ip add ip address masking
delete ip address
undo ip add
display information stp
DIS stp
configuring the bridge ID
stp priority 0/4096
display stp port information
dis stp brief
display routing table
dis ip routing-table
static routing
next hop IP address ip rout-static target segment network address mask [ preference priority]
Add loopback route
int the loopBack 2
IP 192.168.2.2 the Add 24
adds the default route
ip rout-static 0.0.0.0 0 next hop IP address
display VLAN
DIS VLAN Brief
new VLAN
VLAN 10
to modify the interface mode
port link-type access / trunk
After the inlet port, the port to vlan
Port Access vlan 10
Close message center
undo in en
remove vlan configuration
undo port access vlan
assigned vlan trunk port
port permit vlan 10 20
configure the true vlan, untagged communication
port trunk pvid vlan 20
enable port
undo shutdown
access sub-interface
int gi 0 / 0.1
is specified routing sub-interface vlan
vlan-dot1q VID of the type 10
to create a virtual port
int vlan 10
as a virtual port configuration ip address
ip add ip address
dhcp configuration
dhcp enable
dhcp ip-Server the pool A
Gateway-List 12.1.1.1
Network 12.1.1.0 mask 255.255.255.0
DNS-List 8.8.8.8 9.9.9.9
DHCP Server SELECT
DHCP Server Forbidden ip-address ip 12.1.1.1 12.1.1.10 # exclude
ip address dhcp-alloc # automatically obtain ip address
NAT configuration
nat outbound # external address using port
na address-group 1 # ip address fixed
address 12.1.1.3 12.1.1.4
ACL 2000 Basic
rule Source the permit 192.168.10.0 0.0.0.255
int GI 0 / # access port. 1
nat outbound 2000 address-group 1
open Telnet
Telnet Server enable
Line VTY 0. 4
authentication scheme-MODE
quit
local HCNP-User
password 123 Simple
#-type-Service Terminal
-Service-type Telnet
inside the NAT network addresses
int gi 0/1
outer nat server protocal tcp global network address inside the network address port
dis nat session # display information nat
NAT debug command
Terminal the debugging
Terminal Monitor
the debugging nat Event
the debugging nat Packet
Layer link Aggregation
Bridge-Aggrengation. 1 int
int Range GI GI 1/0/2 to 1/0/3
Port Link Group-aggregation. 1
ACL configuration
acl basic 2000 # basic ACL
rule the deny 192.168.10.1 Source # 0 exact match
int 0/2 GI
Packet -filter 2000 outbound # block the specified source packet
acl advanced 3000 # advanced acl
rule deny ICMP source 192.168.10.0 172.16.10.2 0.0.0.255 Where do you want to block the specified network segment 0 # ping destination address
int gi 0/2
packet-filter 3000 outbound
smart Flexible architecture irf
switch. 1
DIS irf
irf priority. 1 Member 32
int Rang Ten Ten 1/0/51 1/0/50 to
the shutdown
irf 1/1-Port
Port Group interface Ten-GigabitEthernet / 0/50
Port Group interface Ten-GigabitEthernet / 0/51 is
IRF-Port-Active Configuration
int rang Ten 1/0/50 to Ten 1/0/51
undo shutdown
save
插网线
交换机2
dis irf
irf member 1 renumber 2
int rang Ten 1/0/50 to Ten 1/0/51
shutdown
irf-port 1/1
port group interface Ten-GigabitEthernet1/0/50
port group interface Ten-GigabitEthernet1/0/51
irf-port-configuration active
int rang Ten 1/0/50 to Ten 1/0/51
undo shutdown
save
插网线
H3C study notes
Guess you like
Origin www.cnblogs.com/fourw/p/11119860.html
Ranking