Asterisk intermitent probl

im using deb 3.1 w/ asterisk 1.2 w/ 2 nics - 1 private 1 public ip.

the problem is intermittent, calls fail. sometimes reset solves the problem.

and the problem is …

calls fails.
whenever i ping the provider peer address - unreachable, but when i tried using other workstations, i can reach the ip addrss

i have 2 nic 1 private 1 public. xlite register to private address…

could it be routing problem?

sounds like a networking/routing problem. Once you can successfully ping see if * works…

Destination Gateway Genmask Flags Metric Ref Use Iface
[public ip] 0.0.0.0 255.255.255.248 U 0 0 0 eth1
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 [public ip] 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 192.168.4.254 0.0.0.0 UG 0 0 0 eth0

im not familiar w/ linux routing but from what i know in cisco:
0.0.0.0 is default gateway, so im assuming its the default and so could it be the last 2 lines wherein 2 default routes?

yeah i think so, remove the one that isn’t connected to the public internet (eth0 or eth1)

eth0 is private ip
eth1 is public ip

what should i do w/ the routing?

remove the 0.0.0.0 on eth0 then. You only want to route to 0.0.0.0 on a network that can handle internet routing, aka the public ip

Can i do this instead:

Destination Gateway Genmask Flags Metric Ref Use Iface
[public ip] 0.0.0.0 255.255.255.248 U 0 0 0 eth1
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
[provider ip] [public ip] 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 192.168.4.254 0.0.0.0 UG 0 0 0 eth0