OpenVZ Forum


Home » General » Support » strato server with second IP Adress
strato server with second IP Adress [message #10277] Wed, 14 February 2007 10:07 Go to next message
dragon001 is currently offline  dragon001
Messages: 16
Registered: February 2007
Junior Member
Hi,
where do i have to enter my second IP Adress to assign it then to the virtual Servers?
IpTables should be installed (aktually is installed), but i can't connect from the vServer to the internet.

I don't got the clue
Sad
Re: strato server with second IP Adress [message #10284 is a reply to message #10277] Wed, 14 February 2007 11:48 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

As far as I understand you have two public IP addresses: one for HN and on for VE (if no, correct me). If so, you don't need iptables. Just do `vzctl set <veid> --ipadd <veip>` and don't forget to enable ip-forwarding.


HTH,
Vasily.
Re: strato server with second IP Adress [message #10286 is a reply to message #10284] Wed, 14 February 2007 12:10 Go to previous messageGo to next message
dragon001 is currently offline  dragon001
Messages: 16
Registered: February 2007
Junior Member
the problem is, strato uses an dhcp configuration.
but i have two static ips
(a little bit strange, i know)
I can't reach the internet, even though i connect the ip directly to the vServer as you descriped it,
thats what i had in mind, but it didn't work
i wasn't able to ping anything at all!
Re: strato server with second IP Adress [message #10288 is a reply to message #10286] Wed, 14 February 2007 12:19 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Are you able to ping Host node from VE?

Can you, please, post output of the following commands on Host node and in VE:

1) ip a l
2) route -nv
3) iptables -nv
4) cat /proc/net/ipv4/ip_forwarding

Thanks,
Vasily

Re: strato server with second IP Adress [message #10290 is a reply to message #10288] Wed, 14 February 2007 12:31 Go to previous messageGo to next message
dragon001 is currently offline  dragon001
Messages: 16
Registered: February 2007
Junior Member
spira:/var# ip a l
2: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
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
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
6: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0e:a6:86:9f:03 brd ff:ff:ff:ff:ff:ff
inet 81.169.132.96/32 brd 81.169.132.96 scope global eth0
inet6 fe80::20e:a6ff:fe86:9f03/64 scope link
valid_lft forever preferred_lft forever


############################################

Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
81.169.132.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
0.0.0.0 81.169.132.1 0.0.0.0 UG 0 0 0 eth0

############################################

spira:/var# iptables -nv
iptables v1.2.11: no command specified
Try `iptables -h' or 'iptables --help' for more information.

############################################

spira:/var# cat /proc/net/ipv4/ip_forwarding
cat: /proc/net/ipv4/ip_forwarding: Datei oder Verzeichnis nicht gefunden

I hope this helps a little
Re: strato server with second IP Adress [message #10293 is a reply to message #10290] Wed, 14 February 2007 12:40 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Please post output of these commands in __VE__ __and___ in __Host___ Node!

1) ip a l
2) route -nv
3) iptables -L -nv
4) cat /proc/sys/net/ipv4/ip_forward

Thanks
Previous Topic: *SOLVED* nat not working
Next Topic: Disk usage - custom value
Goto Forum:
  


Current Time: Tue Oct 15 17:16:43 GMT 2024

Total time taken to generate the page: 0.04817 seconds