Ikuai routing installation and simple configuration v1.0

Part I: Creating a virtual machine:
1, click Create a new virtual machine
 

 

 

2, select Custom mode to create (select classic mode friendlier), then click Next

 

 

3, do not control the content of the following figure, just click Next:
 

 

 

4, where the system is to select the installation path. Here we chose after re-install the system (but also to select the second item: using the ISO image file):
 

 

 

5, to the virtual machine name and select the virtual machine installation path:
 

 

 

6, to the virtual machine configuration CPU, a thread can select a core:
 

 

 

7, Configuration Memory (Note: I used to Ikuai3.3 version, memory is at least 4G, or can not install):
 

 

 

8, NIC configuration mode, where we can choose the default. Because the back also configure:
 

 

 

9, the following two graphs are selected interface type, directly to the next step:
 

 

 

 

 

10, select the hard disk, and there we chose to create a new virtual hard disk, hard disk size can be selected 5G (soft routing hard disk needs to be greater than 1G):

 

 

 

 

11, specify the virtual hard disk file path and name, the default virtual machine together with the above:

 

 

 
12, custom hardware: Here we need to add a virtual network adapter, whatever the outcome is a soft route, so the two card is necessary. In the following three figures add to.
 

 

 

 

 

 

 

 
13, have added a network card is to configure the network card. We are here to configure custom card connected to the host's virtual NICs /dev.vmnet1 (linux I use, so the name appears below, select the second line when windowns configuration). As for what a virtual network card See FAQ below answers:

 

 

14, a configuration of the card, then the card configuration 2: 2 and the host virtual NIC configuration NIC / dev / vmnet0 connection
 

 

 

15, ready to install the soft-routing system. There click Edit virtual machine settings, and then select the already downloaded the soft route good image file, as in the following two figures:
 

 

 

 

 

16, start the virtual machine:
 

 

 

17, after entering the screen of FIG, first 1 and press Enter. It prompted whether to install the system is input to the hard disk sda y and press Enter. After installing it yourself is like:

 

 

18: After about 5 minutes into the following interface has already been installed successfully FIG.
 

 

 

 
Part II: simple configuration soft route:
1, before configuring the routing software we need to look at the situation hosts virtual network adapter. Operation is as follows:
1)在VMware的编辑里面找到虚拟网卡编辑器,然后点击:

 

 

2)之后进入下面界面(linux系统会有授权操作,输入登录密码即可):这里面我们选中vmnet0,然后在下面配置它为桥接模式,并且桥接到你要做WAN口的主机网卡。这里我选择的是我笔记本唯一的有线网卡:

 

 

 
3)虚拟网卡vmnet1选择host-only模式,然后下面的地址可以配置(需与软路由配置为同一网段,这里配置的哪个网段那么一会软路由里面要配置与此在同一个网段)。因为vmnet8我们这里没有用到,所以不需要配置。
 

 

 

4)下面配置软路由的LAN1地址(WAN地址需要在配置页面绑定,所以这里不做配置):
在菜单界面选择3,然后按Enter键进入,之后输入0再按Enter键。再之后配置LAN1地址与前面配置的vmnet1在同一个网段的任一地址即可。看到下面第二张图则表示配置成功。这个时候按提示退出到主菜单界面。
 

 

 

 

 

5)在主机里面浏览器输入LAN1地址访问软路由并登录进入(默认用户名均密码为admin)
 

 

 

6)进入网络设置==>内外网设置界面,然后在外网网口处点击WAN1来配置WAN口,如下图所示操作进行:
 

 

 

 

 

 
7)在配置完成后会自动连接获取地址(这里3.3版本有bug,需要手动刷新页面才能显示状态和获取到的地址)
 

 

 

8)测试下配置是否正常,下面为在主界面选择4,然后输入 www.baidu.com进行Ping测试。返回有time表示配置测试通过。可以正常上网。
 

 

 

 
三、FAQ:
1、在linux系统安装好虚拟机后启动,vmware提示无法配置网卡为混合模式是什么原因:
答:这是因为在linux系统只有管理员才有权限配置虚拟网卡为混合模式。这里面我们要做的是给三张虚拟网卡读写权限,命令如下:
sudo chmod a+rw /dev/vmnet0
sudo chmod a+rw /dev/vmnet1
sudo chmod a+rw /dev/vmnet8
 
2、在安装好软路由后进入管理界面后提示网卡功耗大,需调整解决:
答:因为在创建虚拟机的时候选择的ubuntu而不是ubuntu 64bit。在ubuntu创建的网卡为amd类型的网卡,ubuntu 64位的才会创建为intel的网卡。intel网卡不会有这个问题。
并且使用界面提示的方法是无法解决此问题的(其实影响不是很大),如果一定要解决可以尝试重新创建虚拟机。
 
3、什么是虚拟网卡:
答:虚拟网卡是用于连接主机与虚拟机的网卡。虚拟机只有通过虚拟网卡才能上网等功能。虚拟网卡配置可以通过vmware的编辑==>虚拟网卡编辑器来配置,如果要给虚拟网卡配置具体的地址则需要在主机的网络管理中进行。具体操作不会的可以百度“怎么配置电脑IP地址”。
那么解释下3张虚拟网卡和它们对应的模式:
1)vmnet0,默认为桥接模式,可以在虚拟网卡配置界面选择要桥接到的主机网卡。桥接后表示虚拟里面里面选择该虚拟网卡的网卡与主机真实网卡直连了,可以手动配置该虚拟机网卡与真实网卡同网段,或者通过该真实网卡连接的真实环境的DHCP服务器分配地址;
2)vmnet1,默认为only-host模式,表示虚拟机仅与主机进行通信,但是无法通过此虚拟网卡上网。我们例子中之所以把LAN1口连接到vmnet1因为我们只需要主机可以访问软路由的管理界面就可以了;
3)vmnet8,默认为nat模式,此模式通过虚拟DHCP服务器给虚拟主机分配地址来进行上网。
详细虚拟网卡介绍可以看下面的文章:
 
4、提示内存小了不能安装软路由系统:
答:Ikuai3.0 64bit所需内存必须大于4G,否则无法安装。
 
5、在软路由管理主菜单界面配置了WAN地址后但是不能上网
答:从Ikuai2.0以后(网上看到的从2.0开始就有这个要求了。但我只试了3.3版本)WAN地址需在维护管理配置界面进行绑定后才能生效。
 
 
 

Guess you like

Origin www.cnblogs.com/ThundRuss-XPLI/p/12350428.html