Welcome to

LINUX WORLD

Rohit Mehta : A Linux Follower

bangalore, Karnataka, India
hi! i m a person who is chill all time. Since jan 2008 i am working for Novell software. The word Impossible does not exist in my dictionary because Impossible says i m possible...hey guys have fun with linux...it begins but has no end......

Tuesday, November 17, 2009

How To Install And Configure Vyatta As An Internet Gateway


http://funlinuxfun.blogspot.com/
vyatta-logo1Vyatta is a popular open source alternative for cisco routerand is a security software which is available as a bootable live CD iso and as a Citrix XenServer & VMWare virtual appliance.
It allows for the easy configuration for routers in your network and is free of cost.
This installation is for all the machines supporting Vmware server or Vmware Workstation and also for the system on which vyatta needs to be installed on base system.
All versions include the current Vyatta feature set and are suitable for evaluation and test environments.
Here are some steps for how two configure vyatta as an internet gateway…
Step1.)For installing vyatta we need a live cd or if using a vmware server/workstation then download vyatta vmware appliance.
Step2.)Download the latest version from here
Step3.)Either use a live cd throughout the process or install it on the hard disk and if using Vmware go to next step. For installing vyatta on hard disk put the live cd and on the system .
Login into the vyatta machine with user root and password vyatta and type install-systemat the prompt to run installation and then the installer launches. The installer is an interactive install script that prompts you for some basic information and confirmation during the install.
Step4.)If using a vmware appliance for vyatta installation first unzip it and then open the .vmdk file through Vmware console open menu. Then turn the virtual machine on. Login into the virtual machine as user vyatta or root with password vyatta for both accounts.
Step5.)Next we need to configure network interfaces in vyatta.
Step6.)Type the following at the command prompt:
vyatta@vyatta:~$ configure
[edit]
vyatta@vyatta# set interfaces ethernet eth0 address
192.168.1.21/24
[edit]
vyatta@vyatta# commit
[edit]
vyatta@vyatta# exit
exit
vyatta@vyatta:~$
Step7.)From another host on the same subnet, ping the interface to ensure that it is up.
Step8.)From a Linux or Windows command prompt, enter the following command
(substituting the IP address you assigned to the interface):
ping 192.168.1.81
If the Vyatta system is reachable, you will see replies from it in response to the
pings.
If so, your system is installed and accessible on your network.
Step9.)vyatta@vyatta:~$ configure
[edit]
vyatta@vyatta# set system host-name R1 ##configuring hostname in vyatta
[edit]
vyatta@vyatta:#commit
vyatta@R1# set interfaces ethernet eth0 address
192.0.2.21/24
[edit]
vyatta@R1# set interfaces ethernet eth1 address
192.168.1.254/24
[edit]
vyatta@R1# commit
vyatta@R1# show interfaces
ethernet eth0 {
address 192.0.2.21/24
hw-id 00:40:63:e2:e4:00
}
ethernet eth1 {
address 192.168.1.254/24
hw-id 00:13:46:e6:f6:87
}
loopback lo {
}
[edit]
Step10.)Define a NAT rule
vyatta@R1# set service nat rule 1 source address 192.168.1.0/24
[edit]
vyatta@R1# set services nat rule 1 outbound-interface eth0
[edit]
vyatta@R1# set service nat rule 1 type masquerade
[edit]
vyatta@R1# commit
[edit]

Step11.)reboot the system and use vyatta as an internet gateway.

No comments:


Which Linux distribution has ease of use?