############################
IP planning:
ETH1: Public network IP x.x.x.x
Eth0: Private network IP 192.168.0.249
############################
I. Configure user name password Telnet login
Console Port Landing Router
<quidway>system-view
[Quidway]local-user admin (username)
[Quidway-luser-admin]password Cipher * * * * * (password)
[Quidway-luser-admin]service-type telnet terminal (service type is telent terminal)
[Quidway-luser-admin]level 3 (Permission level)
------------------------------------
Return to configuration mode (Ctrl+z,sys)
[Quidway]user-interface vty 0 4 (Enter user terminal settings)
[Quidway-ui-vty0-4]authentication-mode Scheme (Configure authentication mode for scheme)
[quidway-ui-vty0-4]idle-timeout 0 0 (set time-out)
Return to configuration mode (Ctrl+z,sys)
Save
Complete the configuration
############################
Two. Configure NAT Internet
1. Configure the Intranet interface IP
[Quidway]interface ethernet0/0
[Quidway-ethernet0/0]ip address 192.168.0.249 255.255.255.0
2. Configure the public network interface IP
[Quidway]interface ETHERNET0/1
[Quidway-ethernet0/1]ip address x.x.x.x 255.255.255.192
[Quidway]ip route-static 0.0.0.0 0.0.0.0 x.x.x.1 Preference 60 (configure default route)
3. Configure ACLs to allow the intranet IP segment to be NAT out
[Quidway]acl number 2000 (Specify ACL number)
[Quidway-acl-basic-2000]rule Permit source 192.168.0.0 0.0.0.255 (Allow 192.168.0.0, 24 segments)
[Quidway-acl-basic-2000]rule deny (access to other segments of the organization)
4. Open NAT on public network interface
[Quidway]interface ETHERNET0/1
[Quidway-ethernet0/1]nat Outbound 2000 (Apply ACL 2000 to define the IP segment of the rule snat)
Three. Configure static routes to access the room 1 and 6 segments
[Quidway]ip route-static 192.168.1.0 255.255.255.0 192.168.0.254 Preference 60
[Quidway]ip route-static 192.168.6.0 255.255.255.0 192.168.0.254 Preference 60
Save
Complete the configuration
--------------------------------------------------------------------------------
Add:
1. Clear the configuration
<quidway>reset saved-configuration
<quidway>reboot
Quidway ar28-31 Router Configuration