Seting default gateway in YAST

Hi, everyone!
I have some issue with network setup in Yast:

Few days ago i get dedicated server in ovh.com
I installed XenServer 7 on it.
One of virtual machines must have own public IP address. I requested for a new additional IP address from OVH.
I get it successfully. But new IP addres was from other subnet than ip address of my XenServer.

According OVH documentation i have to set default gateway on my virtual machine such as on my XenServer and after that my virtual machine will get access to the Internet.

Example:
XenServer settings:
IP: 145.84.155.60
Netmask: 255.255.255.0
Gateway: 145.84.155.254

Virtual machine settings:
IP: 144.85.217.45
Netmask: 255.255.255.255
Gateway: 145.84.155.254

On my virtual machine i installed OpenSuse 13.2
What i’ve done:
ifconfig eth0 144.85.217.45/32

route add default eth0
route add default gw 145.84.155.254

After that my network works fine. Ip packets with destination address 144.85.217.45 coming from internet to XenServer xenbr0 interface (OVH routing) and outgoing traffic goes through eth0 to xenbr0 and then goes to XenServer default gateway.

But if i restart my virtual machine it will become unavailable from internet. Ip routes will be fhush.

I try to set routing in YAST but it not wokring.

Can anybody help me with this issue?

Thank you!

This has nothing to do with your Xen virtualization and is a standard routing issue…

When you add the route manually in a console as you’ve described, it will only be effective during the existing session.
You need to add the “persistent” flag to make the route entry permanent.

An alternative way is to configure your network settings including the DG in the routing tab using YAST, YAST will automatically make your settings permanent.

HTH,
TSU

What is DG?

Explain what you did. Provide screenshot of YaST settings. Without knowing what you did nobody can help you.

DG = Default Gateway

The DG is not much different than any other route entry except that the destination is 0.0.0.0, which means anything that’s not satisfied by any other entry in your routing table.

TSU