proxmox i IP failover kolejny raz
bartoll - 21-02-2010 06:27
proxmox i IP failover kolejny raz
co jeszcze dodadac / usunac aby na VM byl dostep do internetu ?
Serwer :
Kod:
root@ks310818:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:f8:3f:6e
inet6 addr: fe80::230:48ff:fef8:3f6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:578 errors:0 dropped:0 overruns:0 frame:0
TX packets:1166 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:84413 (82.4 KiB) TX bytes:132932 (129.8 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:156 errors:0 dropped:0 overruns:0 frame:0
TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36188 (35.3 KiB) TX bytes:36188 (35.3 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vmbr0 Link encap:Ethernet HWaddr 00:30:48:f8:3f:6e
inet addr:188.165.203.131 Bcast:188.165.203.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fef8:3f6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:407 errors:0 dropped:0 overruns:0 frame:0
TX packets:1155 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:63075 (61.5 KiB) TX bytes:132114 (129.0 KiB)
# ip route add 178.32.30.249 dev vmbr0
Kod:
root@ks310818:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
178.32.30.249 0.0.0.0 255.255.255.255 UH 0 0 0 vmbr0
188.165.203.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 188.165.203.254 0.0.0.0 UG 0 0 0 vmbr0
to co jest w CentOS (OpenVZ)
Kod:
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR="178.32.30.249"
GATEWAY="188.165.203.254"
ARP=yes
HWADDR="02:00:00:00:06:93"
/etc/sysconfig/network-scripts/route-eth0
"188.165.203.254" dev eth0
default via "188.165.203.254" dev eth0
Kod:
# ifconfig
eth0 Link encap:Ethernet HWaddr 02:00:00:00:06:93
inet addr:178.32.30.249 Bcast:178.32.30.249 Mask:255.255.255.255
Kod:
kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
188.165.203.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 188.165.203.254 0.0.0.0 UG 0 0 0 eth0
dzimi - 21-02-2010 07:38
do /etc/sysctl.conf
Kod:
net.ipv4.ip_forward=1
net.ipv4.conf.default.forwarding=1
net.ipv4.conf.default.proxy_arp=1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects=1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.eth0.proxy_arp=1
bartoll - 21-02-2010 12:45
juz tak mialem... nic nie pomoglo :(
zanotowane.pldoc.pisz.plpdf.pisz.plkonstruktor.keep.pl