Configuration Guide# How to Configure Basic IP Settings with Different VLANs (Router on a Stick)
  

Sangfor Jojo Lv5Posted 20 Oct 2023 11:23

Product: NGAF
Version: 8.0.47
1. Introduction
1.1 Scenario
Configure Sangfor NGAF as the default gateway of two different VLANs (Virtual LANs). In a small Enterprise Network, there are two VLANs (Virtual LANs). By default, they can’t access each other because there is no gateway configured. Sangfor NGAF will act as the gateway for the VLANs (Virtual LANs).
1.2 Other Details
1) The VLANs (Virtual LANs) are VLAN10 (172.16.10.0/ 24) and VLAN20 (172.16.20.0/ 24).
2) The connection between the Access Switch and Core Switch is a trunk interface.
3) The interface of the Core Switch connected to NGAF is also a trunk interface.
4) The IP address of the Desktops are statically assigned.
5) The interface used by NGAF was eth1.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


2. Configuration Guide
2.1 NGAF Configuration
Step 1. Choose the interface eth1 and create Subinterface for VLAN 10 and 20.
Go to Network > Interfaces > Subintefaces and click Add, as shown below:


Step 2. A new window will pop up when you click the Add button. Then put the following details:
1) Physical Interfaces: eth1
2) VLAN ID: 10
3) Description: Sub-interface for VLAN10
4) Static IP: 172.16.10.1/255.255.255.0
Then click Save.

Step 3. Repeat Step 2 for VLAN 20.
1) Physical Interfaces: eth1
3) VLAN ID: 20
3) Description: Sub-interface for VLAN10
4) Static IP: 172.16.20.1/255.255.255.0
Then click Save.

Step 4. Verify if there were 2 Sub-interfaces added as shown below:


Step 5. Verify the connections by Ping.
Ping: PC1 to default gateway.

Ping: PC2 to default gateway.

Ping PC1 to PC2.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

3. Precaution
All Pings should be successful. If not, check your IP Addressing configuration.

------------------------------------------ This article is contributed by   ------------------------------------------


Wanna get to know him? Click here.

Like this topic? Like it or reward the author.

Creating a topic earns you 5 coins. A featured or excellent topic earns you more coins. What is Coin?

Enter your mobile phone number and company name for better service. Go

Sangfor Jojo Lv5Posted 20 Oct 2023 11:51
  
Thank you @Regiboy for taking the time to create a nice configuration guide for us. 4000 coins will be rewarded for your contribution.

We warmly welcome engineers to share your creations like configuration guides or troubleshooting cases with us. For more details please click here: https://community.sangfor.com/forum.php?mod=viewthread&tid=7706
Newbie517762 Lv5Posted 20 Oct 2023 12:02
  
Congratulations to @Regiboy.
The article serves as a great example for us to follow.
Farina Ahmed Posted 23 Oct 2023 18:54
  
Very well presented document for Configuration of VLAN