.


:




:

































 

 

 

 


. :




: , ( 1). , .

, - . - - . , -, - , .

, : . , , , DNS-. , .

( ) :

Route network netmask gateway

, :

Route 12.5.7.0 255.255.255.0 78.3.65.1,

12.5.7.0 (network), 255.255.255.0 (netmask), 78.3.65.1 (gateway). , , , .. .

, , (policy routing), .., .

.

 

:

1. . 2.

2. , ssh.

3. (. 1). .

4. Cisco. .

5. ARP- .

, 2.

. Quagga. Quagga Cisco.

KVM- , :

login: root

passw: simulator

Quagga:

root@soft-1# service zebra start

 

 

. 2 IPv4

 

: , Quagga, , /etc/quagga/zebra.conf. soft-core1 ( 1 1) eth0=192.168.24.1/24, soft-core2 ( 2) eth0=172.16.0.1/16.

SSH , , .. soft-core1 eth0 192.168.24.1, soft-core2 eth0 172.16.0.1.

: , ssh, Linux :

ssh @IP-__

. :

login: admin

passw: admin

: . :

 

pc2$ ssh [email protected]

[email protected]'s password:

[admin@localhost ~]$ su

[root@localhost ~]$ iptables F

[root@localhost ~]$ ip6tables F

 

Quagga, , ssh, :

telnet localhost 2601

 

, , 2601 ( zebra).

: Quagga : softcore.

:

 

pc2$ ssh [email protected]

[email protected]'s password:

[admin@localhost ~]$ telnet localhost 2601

soft-core1.lab> enable

soft-core1.lab# configure terminal

soft-core1.lab(config)# ip forwarding / IP

soft-core1.lab(config)# interface eth1 / eth1

soft-core1.lab(config-if)# ip address 31.1.1.2/30 / IPv4

soft-core1.lab(config-if)# description to Cisco /

soft-core1.lab(config-if)# no shutdown /

soft-core1.lab(config-if)# exit /

soft-core1.lab(config)# interface eth2

soft-core1.lab(config-if)# ip address 33.1.1.1/30

soft-core1.lab(config-if)# description to SC-2

soft-core1.lab(config-if)# no shutdown

soft-core1.lab(config-if)# exit

/ dst_network/netmask next-hop

soft-core1.lab(config)# ip route 10.0.0.0/8 31.1.1.1

soft-core1.lab(config)# ip route 172.16.0.0/16 33.1.1.2

 





:


: 2016-11-02; !; : 1067 |


:

:

- , .
==> ...

1738 - | 1547 -


© 2015-2024 lektsii.org - -

: 0.012 .