Operating System - Linux
1752590 Members
2723 Online
108788 Solutions
New Discussion юеВ

Re: NTPDATE - Help please

 
SOLVED
Go to solution
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

what is lab1? Is it a guest or the host? And is this esx server?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

>>>what is lab1? Is it a guest or the host? And is this esx server?

lab1 is the host.

no... is a HP DL 380 server with Red Hat.
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

i am sorry.... i have vmware server
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

on lab1, check that that the firewall isn't creating the issue. you can run

# service iptables status

to see if it is running, if so run

# service iptables stop

If you want to run the firewall you will need to edit the firewall rules to allow udp port 123 outbound. And then run "service iptables save". Otherwise you can turn off the firewall at next reboot by running

# chkconfig iptbales off

But, I'll leave that decision to you.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

I've been looking through the responses and I am curious if you have your network properties setup on lab1 correctly. Maybe you fat fingered the netmask, or gateway, or something. You might start there next if the firewall is not the issue.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

Thank you!! =)

>> If you want to run the firewall you will need to edit the firewall rules to allow udp port 123 outbound

How can I do this??
I don't know...

I think the second thing you mencioned is ok:


[root@lab1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:C4:68:42:4E
inet addr:172.27.109.42 Bcast:172.27.109.255 Mask:255.255.255.0
inet6 addr: fe80::21c:c4ff:fe68:424e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48645520 errors:0 dropped:0 overruns:0 frame:0
TX packets:37640204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:680477219 (648.9 MiB) TX bytes:3319609077 (3.0 GiB)
Interrupt:169 Memory:f8000000-f8012100

eth1 Link encap:Ethernet HWaddr 00:1C:C4:68:42:4C
inet addr:172.27.109.42 Bcast:172.27.109.255 Mask:255.255.255.0
UP BROADCAST MULTICAST 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:177 Memory:fa000000-fa012100

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:6139 errors:0 dropped:0 overruns:0 frame:0
TX packets:6139 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7838483 (7.4 MiB) TX bytes:7838483 (7.4 MiB)


Court Campbell
Honored Contributor

Re: NTPDATE - Help please

I don't create rules that often, so I usually end up googling for examples. Here is just one of many you can test out.

http://www.howtoforge.com/linux_iptables_sarge

Also, you can install and use firestarter. That may actually be easier.

in regards to your thanks, is your issue resolved?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

I will say that I find it interesting that you have both eth0 and eth1 set to use the same ip address.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

I put the rule:
iptables -A INPUT -s 172.27.109.56 -p udp --dport 123 -j ACCEPT

And try again... but i get the same problem... =/

I discover that ntptime dind't work too:

[root@lab1 ~]# ntptime
ntp_gettime() returns code 5 (ERROR)
time cc0c528e.36602000 Wed, Jun 25 2008 2:13:50.212, (.212404),
maximum error 3058192 us, estimated error 16 us
ntp_adjtime() returns code 5 (ERROR)
modes 0x0 (),
offset 0.000 us, frequency 0.000 ppm, interval 4 s,
maximum error 3058192 us, estimated error 16 us,
status 0x40 (UNSYNC),
time constant 0, precision 1.000 us, tolerance 512 ppm,
pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us,
intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

Do you have both ports eth0 and eth1 connected to your network? If so, I would suggest disbling one of them and getting rid of the duplicate ip configuration. I more think that is the issue than anything else at this point.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"