![Lantronix SISPM1040-582-LRT Manual Download Page 49](http://html2.mh-extra.com/html/lantronix/sispm1040-582-lrt/sispm1040-582-lrt_manual_3637484049.webp)
Lantronix
SISPM1040-582-LRT CLI Reference
33757 Rev. J
Page
49
of
272
Example 2:
SISPM1040-582-LRT(config)#
ip gateway interface 1
SISPM1040-582-LRT(config)#
ip dhcp server per-port vlan 10
SISPM1040-582-LRT(config)#
Messages:
% Ip gateway interface 10 binding error!
% No such interface type: v
Example 3
: DHCP option 3
in FW v7.20.0034: a default gateway can be received on a VLAN other than
VLAN 1. Build two DHCP servers with different default routers.
1.
Port 1 connect DHCP server 1, configure VLAN 1000; the server will give 192.168.110.x, and the default
router is 192.168.110.254.
2.
Port 3 connect DHCP server 2, configure VLAN 2000; the server will give 192.168.120.x, and the default
router is 192.168.120.254.
3.
#
configure terminal
4.
(config)#
vlan 1,1000,2000
5.
(config)#
interface GigabitEthernet 1/1
6.
(config-if)#
switchport access vlan 1000
7.
(config)#
interface GigabitEthernet 1/3
8.
(config-if)#
switchport access vlan 2000
9.
(config)#
interface vlan 1000
10.
(config-if-vlan)#
ip address 192.168.110.77 255.255.255.0
11.
(config)#
interface vlan 2000
12.
(config-if-vlan)#
ip address 192.168.120.77 255.255.255.0
13.
(config)#
ip gateway interface 1000
14.
(config)#
interface vlan 1000
15.
(config-if-vlan)#
ip address dhcp
16.
(config)#
interface vlan 2000
17.
(config-if-vlan)#
ip address dhcp
18.
#
show ip route
19.
(config)#
ip gateway interface 2000
20.
#
show ip route
Expected results
:
In step 18 you can see 0.0.0.0/0 via 192.168.
110
.254 <UP GATEWAY HW_RT>.
In step 20, you can see 0.0.0.0/0 via 192.168.
120
.254 <UP GATEWAY HW_RT>.