Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

What are the CLI commands for configuration of NAT on Ruijie EG? Reply

GTAC-Sophia

Level 5

Ruijie Staff

What are the CLI commands for configuration of NAT on Ruijie EG?
1762 0 2023-6-27 13:33:01
Original
Topology:



Ruijie EG is connected to ISP Modem directly. And there are 2 local network segments for 2 intranet users.
Command Reference
The command to configure NAT on Ruijie EG is shown below:
Ruijie> enable
Ruijie# config ter
Ruijie(config)# interface gigabitEthernet 0/0  //Enter to theWAN port

Ruijie(config-if-GigabitEthernet 0/0)# ip address192.168.100.254 24
Ruijie(config-if-GigabitEthernet 0/0)# ip natoutside  //Setnat outside port

Ruijie(config-if-GigabitEthernet 0/0)# interfacegigabitEthernet 0/1  //Enter to the LAN port

Ruijie(config-if-GigabitEthernet 0/1)# ip address192.168.1.254 24   //User gateway address under 192.168.1.0/24 networksegment

Ruijie(config-if-GigabitEthernet 0/1)# ip natinside  //Setnat inside port

Ruijie(config-if-GigabitEthernet 0/1)# interfacegigabitEthernet 0/1.10  //Enter to the LAN port of VLAN 10

Ruijie(config-subif-GigabitEthernet 0/1.10)#encapsulation dot1Q 10         //Encapsulation of interface VLAN ID

Ruijie(config-subif-GigabitEthernet 0/1.10)# ipaddress 192.168.10.254 24    //User gateway address under 192.168.10.0/24 networksegment

Ruijie(config-subif-GigabitEthernet 0/1.10)# ip natinside  //Setnat inside port

Ruijie(config-subif-GigabitEthernet 0/1.10)# exit
Ruijie(config)# ip access-list standard 10   //Only thepermit network can access Internet

Ruijie(config-std-nacl)# permit 192.168.1.00.0.0.255
Ruijie(config-std-nacl)# permit 192.168.10.0 0.0.0.255
Ruijie(config-std-nacl)# exi
Ruijie(config)# ip nat inside source list 10interface GigabitEthernet 0/0 overload
Ruijie(config)# ip route 0.0.0.0 0.0.0.0192.168.100.1  //Adda default route pointed to ISP modem

Ruijije(config)# end
Ruijie# write


RG-EG2100-P v2

Configuration Router
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd