my datacenter give me ip config information:
ipaddress 176.0.0.1
net mask:255.255.255.255
gateway:176.0.243.254
the user guides give me a example in Ubuntu:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 176.0.0.1
netmask 255.255.255.255
broadcast 176.0.0.1
post-up route add 176.0.243.254 dev eth0
post-up route add default gw 176.0.243.254
post-down route del 176.0.243.254 dev eth0
post-down route del default gw 176.0.243.254
i config the vm follow the guids on ubuntu,the vm’s network work well.
when i change the vm’s system from ubuntu to ros,
i can set the ipaddress,netmask,broadcast and default gateway on ros.
and i can’t set the interface route like :post-up route add 176.0.243.254 dev eth0.
my vm’net isn’t work.
how to config the route by interface?
what’s the commands?
give me the way please.
i type the command "/ip route add dst-address=176.0.243.254 gateway=eth0 check-gateway=arp
" and press enter.
the is a message :invalid value for arguments address.
i modify the “eth0” to a ip address.the command execute sucess.