ip route add 192.168.8.0 255.255.255.0 192.168.3.2 0 static
> ip route status
Codes: C - connected, S - static, R - RIP, * - default, ~ - private
S~ 192.168.8.0/ 255.255.255.0 via 192.168.3.2, IF0
C~ 192.168.3.0/ 255.255.255.0 is directly connected, IF0
configure
set interfaces ethernet eth0 address 192.168.3.2/24
commit
{
"interfaces": {
"ethernet": {
"eth0": {
"address": [
"192.168.3.2/24"
],
"duplex": "auto",
"firewall": {
"in": {
"name": "WAN_IN"
},
"local": {
"name": "WAN_LOCAL"
}
},
"pppoe": {
"0": {
"default-route": "none",
"firewall": {
"in": {
"name": "WAN_IN"
},
"local": {
"name": "WAN_LOCAL"
}
},
"mtu": "1492",
"name-server": "none",
"password": "internet",
"user-id": "[email protected]"
}
},
"speed": "auto"
},
"eth1": {
"address": [
"192.168.8.1/24"
],
"duplex": "auto",
"firewall": {
"in": {
"name": "LAN_IN"
},
"local": {
"name": "LAN_LOCAL"
},
"out": {
"name": "LAN_OUT"
}
},
"speed": "auto"
},
"eth2": {
"disable": "''",
"duplex": "auto",
"speed": "auto"
}
},
"loopback": {
"lo": "''"
}
}
}