[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Server with 2 NICs. DomU as Router



I tried adding the address the bridge itself like Simon mentioned:
auto xenbr1
iface xenbr1 inet static
bridge_ports eth1
address 10.20.0.3
netmask 255.255.255.0
broadcast 10.20.0.255
gateway 10.20.0.1
dns-nameservers 8.8.8.8 8.8.4.4


A issue though. DNS doesn't seem to be working, I tried editing resolv.conf directly and dns-nameservers like showed above.

I can ping 8.8.8.8 and any other ip address directly but nslookup, dig etc aren't working. Any ideas why DNS is not propagating?



On Thu, May 19, 2016 at 2:36 AM, Simon Hobson <linux@xxxxxxxxxxxxxxxx> wrote:
John Pearson <johnpearson555@xxxxxxxxx> wrote:

> I have it working with this setup:
>
> eth0 connected to WAN
>
> eth1 connected to LAN
>
> domU running as router and devices connected to the server on eth1
>
> I am able to NAT, route packets etc on domU for devices connected to eth1 and internet/IP works.
>
>
> Now I am trying to connect dom0 to domU also as client. I would like dom0 traffic also forwarded domU. Running `brctl show` on dom0 shows this:
> bridge name     bridge id                   STP enabled     interfaces
> xenbr0          8000.xxxxxxxxxxxxx       no                     vif0
>                                                                                      eth0
> xenbr1          8000.xxxxxxxxxxxxx       no                     vif1

That all looks good

> Since I would like dom0 also another client on domU, I thought creating vlan

You're over-thinking it.
All you need to do is add an IP address to the bridge in Dom0, so change this :

>> auto xenbr1
>> iface xenbr1 inet manual
>> bridge_ports eth1

to
auto xenbr1
iface xenbr1 inet static
bridge_ports eth1
  address nnn.nnn.nnn.nnn
  netmask ....
  gateway ...


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.