SANGFOR IAM v2.1 User Manual
52
Configuration Example of Static Routing
Provided that, there are two LAN segments, 10.251.251.X and 192.168.2.X, which are connected
to each other through a layer 3 switch. The LAN PCs of both the segments direct to the
corresponding gateway configured on the layer 3 switch. The LAN interface IP of the IAM
gateway device is 10.251.251.251 (of 10.251.251.X segment). The WAN interface connects to the
public network.
Requirement: Users of 10.251.251.X and 192.168.2.X segments get access to the Internet through
IAM gateway device, IAM gateway device acting as the egress.
Since 192.168.2.X and the LAN interface (10.251.251.251) of IAM gateway device are of
different segments, IAM gateway device has to add a static routing, the data packets from
192.168.2.X being forwarded to and handled by the LAN layer 3 switch (10.251.251.253) and
finally back to the PC(s) of 192.168.2.X segment. Specific steps and configurations are as shown
below:
Add the SNAT segments, namely, 10.251.251.0/24 and 192.168.2.0/24. For detailed steps, please
refer to Section 6.2.1 System Settings.
Add a static route in [Static Routing] page, the LAN IP addresses 192.168.2.0/24 directing to
gateway 10.251.251.253.