changing the asterisk ip address to a public static IP?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

changing the asterisk ip address to a public static IP?

Postby boiken » Tue Sep 30, 2014 12:07 am

Hello everybody.
Firstly when i get the internet and the voip line from my ISP ,i get them from the same vlan.
Now the ISP gave me 2 statip public ip addresses,one for the voip srv and one for the router.
Im using vicibox 6.0.2,where do i have to put the new static public asterisk IP ???

Thanks
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World

Re: changing the asterisk ip address to a public static IP?

Postby boybawang » Tue Sep 30, 2014 6:31 am

you need 2 lan cards on your asterisk server one where you put your local network and the other your public ip address which is connected directly to the internet
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: changing the asterisk ip address to a public static IP?

Postby boiken » Tue Sep 30, 2014 9:19 am

boybawang wrote:you need 2 lan cards on your asterisk server one where you put your local network and the other your public ip address which is connected directly to the internet

the idea is that i haven't a separate asterisk server.
i have only one physical server,i have made the installation with Vicibox 6,0,2.

The server has 2 Lan Cards ,im using only one of them to make the connection with the router.

How can i solve this ???
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World

Re: changing the asterisk ip address to a public static IP?

Postby GaD » Mon Oct 06, 2014 8:20 pm

How are you connecting to your ISP? If there is a router in between your VOIP server and your ISP, there might be a few things that need to be done. You may not need a second NIC (Network card) and set the same interface with the second IP. YOu'd have to check if the router supports *forwarding* the traffic on the IP. YOu mentioned something about VLAN, it is a bit confusing.... You might need to talk VLAN (802.1q) on your VOIP server
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm

Re: changing the asterisk ip address to a public static IP?

Postby boiken » Tue Oct 07, 2014 2:58 am

GaD wrote:How are you connecting to your ISP? If there is a router in between your VOIP server and your ISP, there might be a few things that need to be done. You may not need a second NIC (Network card) and set the same interface with the second IP. YOu'd have to check if the router supports *forwarding* the traffic on the IP. YOu mentioned something about VLAN, it is a bit confusing.... You might need to talk VLAN (802.1q) on your VOIP server


Im conneting to the ISP trough a Mikrotik Router RB750.The idea is that actually i have a All-in-one Vicibox Server (so Asterisk,Database and the Web Server are one the same Physical Server) and im getting the internet and VoIP on the same port from the router.My server have a local IP address 192.168.x.x.And yes the router supports "Forwarding".
I want to separate the VoIP from the Internet,so that the Internet will not influence on my VoIP quality.


P.S also i want to add a second asterisk server (a new physical server).

How can i do this ??? Thanks
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World

Re: changing the asterisk ip address to a public static IP?

Postby GaD » Tue Oct 07, 2014 9:33 pm

You can add the ip to the same interface
Code: Select all
ip address add xxx.xxx.xxx.xxx/xx dev ethx

will add the ip address to the interface. You will end up with two IPs on the interface, which is what we want. You also need to add the respective routes to the networks
Code: Select all
ip route default via xxx.xxx.xxx.xxx dev ethx  <-- will add the default route thorugh the gateway that you chose
ip route add 10.0.0.0/8 via 10.0.0.1.dev ethx <-- will add the 10.0.0.0/8 network (assuming this as your internal network) to route through the interface needed

If you're going to add another server to your vicidial *cluster* you need to re-think and re-design your implementation. You need to start thinking of VLANs and access restrictions and public IPs and who (which server) will have access to the public ISP/PSTN.
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 102 guests