[Lxc-users] LXC Container: Network Configuration

Patrick Kevin McCaffrey pkm at uwm.edu
Wed Nov 30 03:57:42 UTC 2011


ip route:
default via 174.102.192.1 dev eth4  metric 100 
169.254.0.0/16 dev eth4  scope link  metric 1000 
174.102.192.0/19 dev eth4  proto kernel  scope link  src 174.102.217.33 
192.168.10.0/24 dev eth0  proto kernel  scope link  src 192.168.10.1 
192.168.20.0/24 dev eth1  proto kernel  scope link  src 192.168.20.1 
192.168.30.0/24 dev eth2  proto kernel  scope link  src 192.168.30.1 
192.168.40.0/24 dev eth3  proto kernel  scope link  src 192.168.40.1 

-------------------------------------------------------------------------------

route n:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         174.102.192.1   0.0.0.0         UG    100    0        0 eth4
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth4
174.102.192.0   0.0.0.0         255.255.224.0   U     0      0        0 eth4
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.20.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.30.0    0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.40.0    0.0.0.0         255.255.255.0   U     0      0        0 eth3

--------------------------------------------------------------------------------------

ip link:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:04:23:09:6a:14 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN qlen 1000
    link/ether 00:04:23:09:6a:15 brd ff:ff:ff:ff:ff:ff
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:04:23:09:6a:16 brd ff:ff:ff:ff:ff:ff
5: eth3: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:04:23:09:6a:17 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 576 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0f:1f:fa:51:33 brd ff:ff:ff:ff:ff:ff
7: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:13:f7:3b:2c:7c brd ff:ff:ff:ff:ff:ff
161: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 00:04:23:09:6a:15 brd ff:ff:ff:ff:ff:ff

------------------------------------------------------------------------------------------

ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:04:23:09:6a:14 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.1/24 brd 192.168.10.255 scope global eth0
    inet6 fe80::204:23ff:fe09:6a14/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN qlen 1000
    link/ether 00:04:23:09:6a:15 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.1/24 brd 192.168.20.255 scope global eth1
4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:04:23:09:6a:16 brd ff:ff:ff:ff:ff:ff
    inet 192.168.30.1/24 brd 192.168.30.255 scope global eth2
    inet6 fe80::204:23ff:fe09:6a16/64 scope link 
       valid_lft forever preferred_lft forever
5: eth3: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:04:23:09:6a:17 brd ff:ff:ff:ff:ff:ff
    inet 192.168.40.1/24 brd 192.168.40.255 scope global eth3
6: eth4: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 576 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0f:1f:fa:51:33 brd ff:ff:ff:ff:ff:ff
    inet 174.102.217.33/19 brd 255.255.255.255 scope global eth4
7: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:13:f7:3b:2c:7c brd ff:ff:ff:ff:ff:ff
161: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN 
    link/ether 00:04:23:09:6a:15 brd ff:ff:ff:ff:ff:ff


----------------------------------------------------------------------------------------------------------

brctl show:
bridge name	bridge id		STP enabled	interfaces
br0		8000.000423096a15	no		eth1

-----------------------------------------------------------------------------------------------------------

I think I've got everything you requested.  I'm new to the whole 'mailing list' thing.  In the future, should I upload attachments of command output, or just plain text in the email body?

Pat 

----- Original Message -----
From: "C Anthony Risinger" <anthony at xtfx.me>
To: "Patrick Kevin McCaffrey" <pkm at uwm.edu>
Cc: lxc-users at lists.sourceforge.net
Sent: Tuesday, November 29, 2011 9:11:48 PM
Subject: Re: [Lxc-users] LXC Container: Network Configuration

On Tue, Nov 29, 2011 at 9:09 PM, C Anthony Risinger <anthony at xtfx.me> wrote:
> On Tue, Nov 29, 2011 at 9:07 PM, C Anthony Risinger <anthony at xtfx.me> wrote:
>>
>> whats is output of `ip route` or `route -n`?  do you have dhcp running
>> on the bridge or is the LXC host assigned a static ip?
>
> s/host/guest/

apologiesw for repeated posts ...

also show output of:

ip link
ip addr
brctl show

... and scrub your IPs if necessary/desired

-- 

C Anthony




More information about the lxc-users mailing list