Make Degan Debian Linux router (router dynamic)


How:

1.Komputer installed Debian Linux OS

2. Provide two computers, one as a router and the other as a client

3. At the login: enter your current user and enter the root password

4. After that go to the folder by typing cd etc etc

5. Then come back to the network folder, type cd network

6. If you want a more practical way, then type cd etc / network

7. Then type pico or vi interfaces to manage their intellectual property

8. Vi interfaces for the router as the next guy
auto eth0
iface eth0 inet static
address 192.168.10.36
netmask 255.255.255.0
broadcast 192.168.10.255
network 192.168.10.0
gateway 192.168.10.1

auto eth1
iface eth1 inet static
address 192.168.15.1
netmask 255.255.255.0
broadcast 192.168.15.255
network 192.168.15.0

iface lo inet loopback

9. A vi interfaces in the client type as follows
auto eth0
iface eth0 inet static
address 192.168.15.3
netmask 255.255.255.0
broadcast 192.168.15.255
network 192.168.15.0
gateway 192.168.15.1

iface lo inet loopack

10. Then, organize tablenya IP using, type the router pc-t
nat-A POSTROUTING-s 192.168.15.0/24-j MASQUERADE

11. After such tables ip-save

12. Then restart using the command / etc / init.d / networking restart

13. To check whether the IP tables already entered then enter the command iptables-t
nat-n-L

14. After leaving the network folder with the command cd ..

15. In the folder, so open the file with vi or sysctc1.conf Pico sysctc1,
Delete a pound symbol (#) in # net.ipv4.conf.default.forwading = 1

16. After pinging between the router and the client, if the router can be successful dipping

first installation of quagganya

# Apt-get install quagga

Then the settings will be at / quagga etc / and edit files debian.conf and daemons.conf.
zebra daemon and allow ripd first and create an empty configuration file:
zebra = yes
bgpd = no
ospfd = no
ospf6d = no
ripd = yes
ripngd = no
isisd = no
1. Create configuration file to easily copy … just copy the example RIP configuration file in / usr / share / doc / quagga / examples / etc / quagga / …

# Cp / usr / share / doc / quagga / examples / ripd.conf.sample / etc / quagga / ripd.conf

2. On .. RIP daemon by editing / etc / quagga / daemons

# Vim / etc / quagga / daemons

Fox becomes ripd ripd = no = yes

3. Service restart quagga

# / Etc / init.d / quagga restart

4. Verification quagga daemon is already running

# Ps-ef | grep quagga … quagga daemon will already running
and

vty via remote control
telnet to port 2602

root @ zebra Opera # telnet 127.0.0.1 2602
Hi, this is zebra (version 0.94).
Copyright 1996-2002 Kunihiro Ishiguro.

RIP standard password: Zebra

RIP Configuration is very simple, usually requiring only 3 innings in the run configuration.
Enter the network has a neighboring RIP routers and network that will extend to the neighboring router.

ripd (config) # router rip
ripd (config-router) # network 192.168.1.0/24
ripd (config-router) # network 10.1.1.0/24
ripd (config-router) # ^ Z
ripd #

To check the status of RIP

ripd # show IP protocols
Routing Protocol is “rip”
Sending updates every 30 seconds with + / -50%, next due in 7 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interfaces is not set
Updating the filter entry list for all interfaces is not set
Default redistribution metric is 1
Redistribution:
Version control by default: send version 2, receive version 2
Interface Send Recv number of chain
Routing for Networks:
10.1.1.0/24
192.168.1.0/24
Routing Information Sources:
BadPackets Gateway Distance Last Update BadRoutes
Distance: (default is 120)

To see the route from the RIP neighbor.

ripd # show ip rip
Codes: R – RIP, C – Connected, O – OSPF, B – BGP
(n) – standard (s) – static, (d) – default, (r) – redistribute,
(i) – Interface

Network Next Hop Metric From Time

Do not forget to save settings to a file.

ripd # write memory
Configuration stored in / zebra etc / ripd.conf