Skip to content

Instantly share code, notes, and snippets.

@hplc
Created December 2, 2011 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hplc/1421820 to your computer and use it in GitHub Desktop.
Save hplc/1421820 to your computer and use it in GitHub Desktop.
Ruijie RJ-RSR20 ADSL and NAT
Building configuration...
Current configuration : 1183 bytes
!
version RGOS 10.3(4b1), Release(53844)(Mon Apr 13 14:50:04 CST 2009 -ngcf31)
!
!
!
!
!
!
dialer-list 1 protocol ip permit
!
!
username helloit.info password helloit.info
username helloit.info privilege 15
no service password-encryption
service dhcp
!
ip dhcp excluded-address 192.168.100.1 192.168.100.100
ip dhcp excluded-address 192.168.90.1 192.168.90.100
!
ip dhcp pool DHCPPOOL
network 192.168.90.0 255.255.255.0
dns-server 8.8.8.8 8.8.4.4
default-router 192.168.90.1
!
ip dhcp pool 9qi
network 192.168.100.0 255.255.255.0
dns-server 8.8.8.8 8.8.4.4
default-router 192.168.100.1
!
!
!
!
!
!
!
!
!
!
ip access-list standard 1
10 permit any
!
!
!
!
!
!
!
!
!
!
interface FastEthernet 0/0
pppoe enable
pppoe-client dial-pool-number 10 no-ddr
duplex auto
speed auto
!
interface FastEthernet 0/1
ip nat inside
ip mtu 1488
ip address 192.168.90.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet 0/2
ip nat inside
ip mtu 1488
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
!
interface dialer 1
mtu 1488
encapsulation PPP
ppp pap sent-username helloit.info password helloit.info
ip nat outside
ip address negotiate
dialer pool 10
dialer idle-timeout 300
dialer-group 1
!
ip nat inside source static udp 192.168.90.2 10005 interface dialer 1 10005
ip nat inside source static tcp 192.168.90.2 10005 interface dialer 1 10005
ip nat inside source static udp 192.168.90.2 10004 interface dialer 1 10004
ip nat inside source static tcp 192.168.90.2 10004 interface dialer 1 10004
ip nat inside source static udp 192.168.90.2 10003 interface dialer 1 10003
ip nat inside source static tcp 192.168.90.2 10003 interface dialer 1 10003
ip nat inside source static udp 192.168.90.2 10002 interface dialer 1 10002
ip nat inside source static tcp 192.168.90.2 10002 interface dialer 1 10002
ip nat inside source static udp 192.168.90.2 10001 interface dialer 1 10001
ip nat inside source static tcp 192.168.90.2 10001 interface dialer 1 10001
ip nat inside source list 1 interface dialer 1
!
!
!
!
!
ip route 0.0.0.0 0.0.0.0 dialer 1
!
!
!
ref parameter 50 400
line con 0
line aux 0
line vty 0 35
login local
!
!
end
@hplc
Copy link
Author

hplc commented Dec 28, 2011

Ruijie#show version
System description      : Ruijie Router (RSR20-14) by Ruijie Network
System start time       : 2011-12-26 13:38:8
System uptime           : 1:22:43:52
System hardware version : 1.00
System software version : RGOS 10.3(4b1), Release(53844)
System boot version     : 10.3.53844
System serial number    : 1234942570018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment