把Elastix改造为网关形式

如果把话机要电脑放在同一个网络内这无疑会增加网络管理的难度,能不能把elastix做成网关的形式呢? 本文是一个探索。
首先在系统里添加一块网卡,命名为Eth1,作为lan口,与话机想连,原eth0作为wan口与网关相连。

设置eth1的网络设置:

# ifconfig eth1 192.168.0.1/24

添加一条静态路由:

# route add -net 192.168.0.0/24 eth1

打开系统IP转发功能:

# vi /etc/sysctl.conf

把下面行的值修改为1:

net.ipv4.ip_forward = 1

重起生效。
也可以执行以下命令直接生效:

echo “1″ > /proc/sys/net/ipv4/ip_forward

关于 清风

关注IT资讯,虚拟化技术,企业VPN, VoIP, CRM应用等。
本文章发表于 (This entry was posted in) IT新闻. 收藏 (Bookmark the) 永久链接(permalink).

发表评论 Leave a Reply

邮箱不会出现在评论中(Your email address will not be published.) *号为必填项 Required fields are marked *

*

你可以使用一些简单的 HTML 命令。You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

请回答(What is) 3 + 12 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)