25.05.2023, 07:49
Hey Guys,
Is it possible top add a Network Route manually?
Is it possible top add a Network Route manually?
Manual Network Route
|
25.05.2023, 07:49
Hey Guys,
Is it possible top add a Network Route manually?
25.05.2023, 07:56
Code: os.execute('route add ...')
26.05.2023, 10:00
Thanks Admin,
But not working yet. I try: os.execute('ip route add 192.168.101.0/24 via 172.16.87.150') os.execute('ip route add 192.168.101.0 netmask 255.255.255.0 gw 172.16.87.150 eth0') No script errors loged. If the Route is added will it be shown in the Route window? Im Using Schneider Spacelynk maybe this is the reason?
26.05.2023, 12:29
Try this:
Code: res = io.readproc('route add -net 192.168.101.0/24 gw 172.16.87.150 eth0 2>&1')
30.05.2023, 17:22
It works!
Thanks |
« Next Oldest | Next Newest »
|