2014-04-18 9:45 GMT-03:00 Joost Roeleveld <jo...@antarean.org>:
> On Wednesday 16 April 2014 23:17:27 Facu Curti wrote:
>> On Thu, Apr 17, 2014 at 09:54:46AM +0800, AR wrote:
>> > On Thu, Apr 17, 2014 at 9:31 AM, Facu Curti <facu.cu...@gmail.com> wrote:
>> > > Hi all! :)
>> > >
>> > > I'm following the gentoo wiki [1]. I can't find any mistake on config
>> > > files, but network does not work :/.
>> > >
>> > > I don't have any xen configuration (or domU) yet. I'm just trying to get
>> > > a bridge with functional network on my domain0.
>> > >
>> > > I attach my /etc/conf.d/net
>> > >
>> > > When I try to ping, with any iface, to to outside, or even to the
>> > > getaway, it says host unreachable. Also, the system delays on load the
>> > > system. It takes like 30 sec more, and conky get stuck (I use it to
>> > > take data like IP, getway, dns, etc..).
>> > >
>> > > I hope can help me please, I need to get this working :/
>> > >
>> > > Thank you! You all are the best!! Bye!
>> > >
>> > > Sorry if my english is not the best :/
>> > >
>> > > [1] https://wiki.gentoo.org/wiki/Xen#Networking_on_Unpriviledged_Domains
>> >
>> > and what is your current network situation and your config (in
>> > /etc/conf.d/net) ?>
>>
>> My /etc/conf.d/net is:
>>       config_enp3s0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255"
>>       routes_enp3s0="default via 192.168.1.1"
>>
>>
>> And ifconfig:
>>
>> enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>>         inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
>>       ether ac:22:0b:c1:dc:de  txqueuelen 1000  (Ethernet)
>>       RX packets 4630  bytes 4343241 (4.1 MiB)
>>       RX errors 0  dropped 0  overruns 0  frame 0
>>       TX packets 4923  bytes 686607 (670.5 KiB)
>>       TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>>
>> lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
>>       inet 127.0.0.1  netmask 255.0.0.0
>>       loop  txqueuelen 0  (Local Loopback)
>>       RX packets 0  bytes 0 (0.0 B)
>>       RX errors 0  dropped 0  overruns 0 frame 0
>>       TX packets 0  bytes 0 (0.0 B)
>>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>>
>> > Just for reference, here is my config.
>> >
>> > the IP on br0 is got from DHCP, everything else should be similar.
>> >
>> > modules="iproute2" # optional
>> >
>> > config_eth0="null"
>> >
>> > dns_servers_br0="192.168.1.136"
>> >
>> > config_br0="dhcp" # change this line if your network config is static
>> > brctl_br0="setfd 0 sethello 10 stp off"
>> > bridge_br0="eth0"
>> >
>> > rc_net_br0_need="net.eth0"
>> > rc_net_eth0_provide="!net"
>>
>> I will try this config. I need an static ip, but I can do this from
>> router configuring the dhcp server. So, it is not a problem.
>>
>> I bring news in a few minutes
>> Thank you!
>
>
> If you specify an IP for the interface AND the bridge, which one will be used
> for the communication?
>
> I would suggest the following for your "net" config:
>
> ---
> config_enp3s0="null"
>
> bridge_xenbr0="enp3s0"
> config_xenbr0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255"
> routes_xenbr0="default gw 192.168.1.1"
> rc_net_xenbr0_need="net.enp3s0"
> ---
>
> Also ensure you have a " net.xenbr0 " file:
>
> #  cd /etc/init.d
> #  ln -s net.xenbr0   net.lo
>
> Then start net.xenbr0:
>
> # /etc/init.d/net.xenbr0  start
>
> If this doesn't work, please send the results of the following commands:
>
> #  ifconfig -a
> #  brctl show
>
> Kind regards,
>
> Joost Roeleveld
>

Thank you all! I fixed it. I attached my net file. The first time I
tried, it had a typo. This is why didnt work the first time :P

Thank you!!

Attachment: net
Description: Binary data

Reply via email to