1 |
On Wednesday 16 April 2014 23:17:27 Facu Curti wrote: |
2 |
> On Thu, Apr 17, 2014 at 09:54:46AM +0800, AR wrote: |
3 |
> > On Thu, Apr 17, 2014 at 9:31 AM, Facu Curti <facu.curti@×××××.com> wrote: |
4 |
> > > Hi all! :) |
5 |
> > > |
6 |
> > > I'm following the gentoo wiki [1]. I can't find any mistake on config |
7 |
> > > files, but network does not work :/. |
8 |
> > > |
9 |
> > > I don't have any xen configuration (or domU) yet. I'm just trying to get |
10 |
> > > a bridge with functional network on my domain0. |
11 |
> > > |
12 |
> > > I attach my /etc/conf.d/net |
13 |
> > > |
14 |
> > > When I try to ping, with any iface, to to outside, or even to the |
15 |
> > > getaway, it says host unreachable. Also, the system delays on load the |
16 |
> > > system. It takes like 30 sec more, and conky get stuck (I use it to |
17 |
> > > take data like IP, getway, dns, etc..). |
18 |
> > > |
19 |
> > > I hope can help me please, I need to get this working :/ |
20 |
> > > |
21 |
> > > Thank you! You all are the best!! Bye! |
22 |
> > > |
23 |
> > > Sorry if my english is not the best :/ |
24 |
> > > |
25 |
> > > [1] https://wiki.gentoo.org/wiki/Xen#Networking_on_Unpriviledged_Domains |
26 |
> > |
27 |
> > and what is your current network situation and your config (in |
28 |
> > /etc/conf.d/net) ?> |
29 |
> |
30 |
> My /etc/conf.d/net is: |
31 |
> config_enp3s0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255" |
32 |
> routes_enp3s0="default via 192.168.1.1" |
33 |
> |
34 |
> |
35 |
> And ifconfig: |
36 |
> |
37 |
> enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
38 |
> inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 |
39 |
> ether ac:22:0b:c1:dc:de txqueuelen 1000 (Ethernet) |
40 |
> RX packets 4630 bytes 4343241 (4.1 MiB) |
41 |
> RX errors 0 dropped 0 overruns 0 frame 0 |
42 |
> TX packets 4923 bytes 686607 (670.5 KiB) |
43 |
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
44 |
> |
45 |
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 |
46 |
> inet 127.0.0.1 netmask 255.0.0.0 |
47 |
> loop txqueuelen 0 (Local Loopback) |
48 |
> RX packets 0 bytes 0 (0.0 B) |
49 |
> RX errors 0 dropped 0 overruns 0 frame 0 |
50 |
> TX packets 0 bytes 0 (0.0 B) |
51 |
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
52 |
> |
53 |
> > Just for reference, here is my config. |
54 |
> > |
55 |
> > the IP on br0 is got from DHCP, everything else should be similar. |
56 |
> > |
57 |
> > modules="iproute2" # optional |
58 |
> > |
59 |
> > config_eth0="null" |
60 |
> > |
61 |
> > dns_servers_br0="192.168.1.136" |
62 |
> > |
63 |
> > config_br0="dhcp" # change this line if your network config is static |
64 |
> > brctl_br0="setfd 0 sethello 10 stp off" |
65 |
> > bridge_br0="eth0" |
66 |
> > |
67 |
> > rc_net_br0_need="net.eth0" |
68 |
> > rc_net_eth0_provide="!net" |
69 |
> |
70 |
> I will try this config. I need an static ip, but I can do this from |
71 |
> router configuring the dhcp server. So, it is not a problem. |
72 |
> |
73 |
> I bring news in a few minutes |
74 |
> Thank you! |
75 |
|
76 |
|
77 |
If you specify an IP for the interface AND the bridge, which one will be used |
78 |
for the communication? |
79 |
|
80 |
I would suggest the following for your "net" config: |
81 |
|
82 |
--- |
83 |
config_enp3s0="null" |
84 |
|
85 |
bridge_xenbr0="enp3s0" |
86 |
config_xenbr0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255" |
87 |
routes_xenbr0="default gw 192.168.1.1" |
88 |
rc_net_xenbr0_need="net.enp3s0" |
89 |
--- |
90 |
|
91 |
Also ensure you have a " net.xenbr0 " file: |
92 |
|
93 |
# cd /etc/init.d |
94 |
# ln -s net.xenbr0 net.lo |
95 |
|
96 |
Then start net.xenbr0: |
97 |
|
98 |
# /etc/init.d/net.xenbr0 start |
99 |
|
100 |
If this doesn't work, please send the results of the following commands: |
101 |
|
102 |
# ifconfig -a |
103 |
# brctl show |
104 |
|
105 |
Kind regards, |
106 |
|
107 |
Joost Roeleveld |