Hello list,

We have an Asterisk PBX running on Debian with 1 NIC. We're adding a SIP trunk and, for that, the ISP/ITSP installed a router/gateway (I think that's what it is).

They've told me I needed to have configuration like this:

 PBX IP: 10.120.43.153
 Gateway: 10.120.43.158
 Netmask: 255.255.255.248

Plus this routes:

 10.0.0.0 /255.0.0.0 - 10.120.43.158
 62.48.163.64/255.224.0.0 - 10.200.34.158
 192.168.168.0/255.255.255.192 - 10.120.43.158

I also need the PBX be in the our network as well, 192.168.0.200. For that I created an alias and now I have my interfaces like this:

auto eth0
iface eth0 inet static
        address 192.168.0.200
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.254

auto eth0:0
iface eth0:0 inet static
        address 10.120.43.153
        netmask 255.255.255.248
        gateway 10.120.43.158


I've added the 10.0.0.0 route fine:

 route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.120.43.158


But when I try any of the other 2, I get:

 route: bogus netmask 255.225.255.192
 Usage: ...

Or:

 route: netmask doesn't match route address
 Usage: ...

I've tried with "-host" as well and got:

 route: netmask 001fffff doesn't make sense with host route
 Usage: ...


Does anyone knows what's wrong or what do they mean by those configs?

Best regards,
Paulo Santos






--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e301a6e.6060...@sapo.pt

Reply via email to