VETH AND DHCP [message #44953] |
Wed, 18 January 2012 14:15  |
seba01
Messages: 2 Registered: January 2012
|
Junior Member |
|
|
Hello everybody, I will be really grateful if You can help me.
HN:centos 6.1
Guests: centos 5.6
Problem:
I need to set local (private) IP for container to make it visible in my LAN (for instance to use ssh in 2 directions: LAN <-> CT1.
I have DHCP server with manual config. I have 2 physical cards: ETH0 and ETH1.
I want to set bridge BR0 on ETH1 and VETH101.1. BR0, ETH1 and VETH101.1 set without any IP. But autocreated ETH1 on CT1 side without any IP too and down (CT1 ETH1 down after start).
1.Generally I can't add any IP for CT1 using DHCP. I get 'Inappropriate ioctl for device' because I disabled VENET, but before - I got collisions errors (IP exists).
Please explain me, what MAC should be on VETH101.1 to make possible up CT1-ETH1. Now I have same MAC on CT_0-ETH1,BR0 and VETH101.1. Only different generated MAC on CT1_ETH1. IS it Ok?
2. Is it needed to use BRIDGE for this purpose? or can I just link ETH1 with VETH101.1 ?
3. Which ip routes I should set in CT0 and CT1 ?
My Settings (CT0):
SELINUIX:
SELinux status: disabled
SYSCTL:
net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
for CT1:
NETIF=" ifname=eth1,mac=generatedMAC,host_ifname=veth101.1,host_mac= PhysicalEth1MAC "
/proc/sys/net/ipv4/conf/eth0/forwarding = 1
/proc/sys/net/ipv4/conf/eth0/proxy_arp = 0
Thanks in advance.
[Updated on: Thu, 19 January 2012 01:55] Report message to a moderator
|
|
|
|