728x90
Area 0 : R3, R4
Area 1 : R1, R3
Area 2 : R2, R4
Area 3 : R3, R4, R5, R6
root@R1# run show configuration
## Last commit: 2011-05-30 10:27:15 UTC by root
version 10.0R3.10;
system {
host-name R1;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em1 {
unit 0 {
family inet {
address 192.168.10.1/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.3.1/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.1 {
stub default-metric 20; // default metric 값 20 으로 변경 0.0.0.0
interface em2.0;
}
}
}
## Last commit: 2011-05-30 10:27:15 UTC by root
version 10.0R3.10;
system {
host-name R1;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em1 {
unit 0 {
family inet {
address 192.168.10.1/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.3.1/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.1 {
stub default-metric 20; // default metric 값 20 으로 변경 0.0.0.0
interface em2.0;
}
}
}
root@R2# run show configuration
## Last commit: 2011-05-27 11:41:31 UTC by root
version 10.0R3.10;
system {
host-name R2;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em1 {
unit 0 {
family inet {
address 192.168.20.4/32;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.8.2/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.3.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.2/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.2 {
stub default-metric 10 no-summaries;
interface em2.0;
}
}
}
## Last commit: 2011-05-27 11:41:31 UTC by root
version 10.0R3.10;
system {
host-name R2;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em1 {
unit 0 {
family inet {
address 192.168.20.4/32;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.8.2/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.3.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.2/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.2 {
stub default-metric 10 no-summaries;
interface em2.0;
}
}
}
root@R3# run show configuration
## Last commit: 2011-05-30 10:28:45 UTC by root
version 10.0R3.10;
system {
host-name R3;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.5.3/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.2.3/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.1.3/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.4.3/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.3/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.1 {
stub default-metric 20;
interface em2.0;
}
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
area 0.0.0.3 {
interface em1.0;
interface em0.0;
}
}
}
## Last commit: 2011-05-30 10:28:45 UTC by root
version 10.0R3.10;
system {
host-name R3;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.5.3/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.2.3/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.1.3/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.4.3/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.3/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.1 {
stub default-metric 20;
interface em2.0;
}
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
area 0.0.0.3 {
interface em1.0;
interface em0.0;
}
}
}
root@R4# run show configuration
## Last commit: 2011-05-27 14:00:08 UTC by root
version 10.0R3.10;
system {
host-name R4;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.6.4/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.9.4/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.8.4/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.4.4/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.4/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
area 0.0.0.2 {
stub default-metric 10 no-summaries;
interface em2.0;
}
area 0.0.0.3 {
interface em0.0;
interface em1.0;
}
}
}
## Last commit: 2011-05-27 14:00:08 UTC by root
version 10.0R3.10;
system {
host-name R4;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.6.4/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.9.4/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.8.4/24;
}
}
}
em3 {
unit 0 {
family inet {
address 192.168.4.4/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.4/32;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
area 0.0.0.2 {
stub default-metric 10 no-summaries;
interface em2.0;
}
area 0.0.0.3 {
interface em0.0;
interface em1.0;
}
}
}
root@R5# run show configuration
## Last commit: 2011-05-27 13:56:54 UTC by root
version 10.0R3.10;
system {
host-name R5;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.6.5/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.2.5/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.7.5/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.5/32;
}
}
}
}
routing-options {
static {
route 100.100.100.0/24 next-hop 192.168.7.6; // static 경로를 테이블에 올리기 위해 임으로 설정함.
}
}
protocols {
ospf {
export redis_static;
area 0.0.0.3 {
interface em0.0;
interface em1.0;
interface em2.0;
interface lo0.0;
}
}
}
policy-options {
policy-statement redis_static { //static경로를 ospf로 재분배 하는 정책
from protocol static;
then accept;
}
}
## Last commit: 2011-05-27 13:56:54 UTC by root
version 10.0R3.10;
system {
host-name R5;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.6.5/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.2.5/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.7.5/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.5/32;
}
}
}
}
routing-options {
static {
route 100.100.100.0/24 next-hop 192.168.7.6; // static 경로를 테이블에 올리기 위해 임으로 설정함.
}
}
protocols {
ospf {
export redis_static;
area 0.0.0.3 {
interface em0.0;
interface em1.0;
interface em2.0;
interface lo0.0;
}
}
}
policy-options {
policy-statement redis_static { //static경로를 ospf로 재분배 하는 정책
from protocol static;
then accept;
}
}
root@R6# run show configuration
## Last commit: 2011-05-27 13:59:36 UTC by root
version 10.0R3.10;
system {
host-name R6;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.5.6/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.9.6/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.7.6/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.6/32;
}
}
}
}
routing-options {
static {
route 200.200.200.0/24 next-hop 192.168.7.5;
}
}
protocols {
ospf {
export redis_static;
area 0.0.0.3 {
interface em0.0;
interface em1.0;
interface em2.0;
interface lo0.0;
}
}
}
policy-options {
policy-statement redis_static {
from protocol static;
then accept;
}
}
## Last commit: 2011-05-27 13:59:36 UTC by root
version 10.0R3.10;
system {
host-name R6;
root-authentication {
encrypted-password "$1$Le7q3/yU$l2sBlzemteXJhXQBnqnFX."; ## SECRET-DATA
}
services {
ssh {
root-login allow;
}
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 192.168.5.6/24;
}
}
}
em1 {
unit 0 {
family inet {
address 192.168.9.6/24;
}
}
}
em2 {
unit 0 {
family inet {
address 192.168.7.6/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.6/32;
}
}
}
}
routing-options {
static {
route 200.200.200.0/24 next-hop 192.168.7.5;
}
}
protocols {
ospf {
export redis_static;
area 0.0.0.3 {
interface em0.0;
interface em1.0;
interface em2.0;
interface lo0.0;
}
}
}
policy-options {
policy-statement redis_static {
from protocol static;
then accept;
}
}