Hi there,
because I have to access to a remote new installed Sophos XG 115, i accessed via ssh form a neighbour firewall to the Sophos XG 115 for setting a few temporary static routes, before continue configuring with the web-GUI coming from an other network.
The follwing example is made on a Sophos XG 115 in an lab environment.
Im using the command route add.
THE PROBLEM:
The route add command is not working as I expected.
QUESTION:
What is the correct syntax?
EXAMPLE:
Main Menu
5. Device Management
3. Advanced Shell
1. Checking the current routes:
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.255.0.0 0.0.0.0 255.255.255.0 U 0 0 0 GuestAP
192.168.45.0 192.168.46.1 255.255.255.0 UG 0 0 0 br0
192.168.46.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.48.0 0.0.0.0 255.255.255.0 U 0 0 0 Port2
2. Add the default route 0.0.0.0/0.0.0.0 to the routing table:
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route add default gw 192.168.48.1
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.48.1 0.0.0.0 UG 0 0 0 Port2
10.255.0.0 0.0.0.0 255.255.255.0 U 0 0 0 GuestAP
192.168.45.0 192.168.46.1 255.255.255.0 UG 0 0 0 br0
192.168.46.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.48.0 0.0.0.0 255.255.255.0 U 0 0 0 Port2
-> This works as I expected and I can access the XG from an other network.
3. I don't need the temporary default route and delete it:
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route del default
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.255.0.0 0.0.0.0 255.255.255.0 U 0 0 0 GuestAP
192.168.45.0 192.168.46.1 255.255.255.0 UG 0 0 0 br0
192.168.46.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.48.0 0.0.0.0 255.255.255.0 U 0 0 0 Port2
-> OK, the temporary default route is deleted
4. THE PROBLEM
I want to set a dedicated static IP route to the network 192.168.21.0/24
XG115_XN03_SFOS 18.0.1 MR-1-Build396# route add 192.168.21.0/255.255.255.0 gw 192.168.48.1
route: invalid number '255.255.255.0'
XG115_XN03_SFOS 18.0.1 MR-1-Build396#
QUESTION:
What is the correct syntax?
Thank you a hint.
This thread was automatically locked due to age.