Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7. 対向につながらにな。。 #2

Open
kitakou0313 opened this issue Aug 28, 2021 · 7 comments
Open

7. 対向につながらにな。。 #2

kitakou0313 opened this issue Aug 28, 2021 · 7 comments

Comments

@kitakou0313
Copy link
Member

https://contest.ictsc.net/#/problems/ffa9e296-80c6-4949-babe-10820183c71f

@passerby-1
Copy link
Collaborator

passerby-1 commented Aug 28, 2021

user@tky-R1:~$ show config

interfaces {
    ethernet eth0 {
        address 172.16.1.3/31
        hw-id 9c:a3:ba:32:60:d7
    }
    ethernet eth1 {
        address 172.30.253.2/31
        hw-id 9c:a3:ba:32:fa:24
    }
    ethernet eth2 {
        address 192.168.20.1/24
        hw-id 9c:a3:ba:32:4c:69
    }
    loopback lo {
        address 172.30.254.1/32
        address 172.30.0.1/24
    }
}
protocols {
    bgp 65001 {
        address-family {
            ipv4-unicast {
                network 172.30.0.0/16 {
                }
            }
        }
        neighbor 172.16.1.2 {
            address-family {
                ipv4-unicast {
                    soft-reconfiguration {
                        inbound
                    }
                }
            }
            remote-as 65000
        }
        neighbor 172.30.253.3 {
            address-family {
                ipv4-unicast {
                    soft-reconfiguration {
                        inbound
                    }
                }
            }
            remote-as internal
        }
        parameters {
            router-id 172.30.254.1
        }
    }
    ospf {
        area 0 {
            network 172.30.254.1/32
            network 172.30.253.2/31
            network 172.30.0.0/24
        }
        parameters {
            abr-type cisco
            router-id 172.30.254.1
        }
    }
}
service {
    ssh {
    }
}
system {
    config-management {
        commit-revisions 20
    }
    console {
        device ttyS0 {
            speed 9600
        }
    }
    host-name tky-R1
    login {
        user user {
            authentication {
                encrypted-password ****************
            }
        }
        user vyos {
            authentication {
                encrypted-password ****************
            }
        }
    }
    name-server 133.242.0.3
    name-server 133.242.0.4
    ntp {
        server ntp1.sakura.ad.jp {
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone Asia/Tokyo
}

@passerby-1
Copy link
Collaborator

user@tky-R1:~$ show configuration commands

set interfaces ethernet eth0 address '172.16.1.3/31'
set interfaces ethernet eth0 hw-id '9c:a3:ba:32:60:d7'
set interfaces ethernet eth1 address '172.30.253.2/31'
set interfaces ethernet eth1 hw-id '9c:a3:ba:32:fa:24'
set interfaces ethernet eth2 address '192.168.20.1/24'
set interfaces ethernet eth2 hw-id '9c:a3:ba:32:4c:69'
set interfaces loopback lo address '172.30.254.1/32'
set interfaces loopback lo address '172.30.0.1/24'
set protocols bgp 65001 address-family ipv4-unicast network 172.30.0.0/16
set protocols bgp 65001 neighbor 172.16.1.2 address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 65001 neighbor 172.16.1.2 remote-as '65000'
set protocols bgp 65001 neighbor 172.30.253.3 address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 65001 neighbor 172.30.253.3 remote-as 'internal'
set protocols bgp 65001 parameters router-id '172.30.254.1'
set protocols ospf area 0 network '172.30.254.1/32'
set protocols ospf area 0 network '172.30.253.2/31'
set protocols ospf area 0 network '172.30.0.0/24'
set protocols ospf parameters abr-type 'cisco'
set protocols ospf parameters router-id '172.30.254.1'
set service ssh
set system config-management commit-revisions '20'
set system console device ttyS0 speed '9600'
set system host-name 'tky-R1'
set system login user user authentication encrypted-password '$6$qgSU9Gih4L9GtHY8$c3msGDhaWUgMWNZImToUs824aP45Qyvq0zRi74Q7HqHKb1nu4v1i4IwY/4XuZTwbWFMxMWx/2nsMQsdK5dw.4/'
set system login user vyos authentication encrypted-password '$6$u/FGcXt1$NBy6GWQOf.BnXEqD3wRt1vFGv3FVn7Yq6VvCG56JHrSfXJTCUga5wRrM623VzOpaXM8oMMEPMrHCTosyF/lMx1'
set system name-server '133.242.0.3'
set system name-server '133.242.0.4'
set system ntp server ntp1.sakura.ad.jp
set system syslog global facility all level 'notice'
set system syslog global facility protocols level 'debug'
set system time-zone 'Asia/Tokyo'

@passerby-1
Copy link
Collaborator

user@tky-R1:~$ show ip bgp

BGP table version is 3, local router ID is 172.30.254.1, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 172.16.1.2/31    172.16.1.2               0             0 65000 i
*> 172.20.0.0/16    172.16.1.2               0             0 65000 i
* i172.30.0.0/16    172.30.253.3             0    100      0 i
*>                  0.0.0.0                  0         32768 i

Displayed  3 routes and 4 total paths

@passerby-1
Copy link
Collaborator

user@tky-R1:~$ show ip bgp sum

IPv4 Unicast Summary:
BGP router identifier 172.30.254.1, local AS number 65001 vrf-id 0
BGP table version 3
RIB entries 5, using 920 bytes of memory
Peers 2, using 41 KiB of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
172.16.1.2      4      65000     132     132        0    0    0 02:07:34            2
172.30.253.3    4      65001     131     132        0    0    0 02:07:33            1

Total number of neighbors 2

@passerby-1
Copy link
Collaborator

user@tky-R2:~$ show configuration commands

set interfaces ethernet eth0 address '172.30.253.3/31'
set interfaces ethernet eth0 hw-id '9c:a3:ba:32:d6:ec'
set interfaces ethernet eth1 address '172.30.1.1/24'
set interfaces ethernet eth1 hw-id '9c:a3:ba:32:b7:b1'
set interfaces ethernet eth2 address '192.168.20.2/24'
set interfaces ethernet eth2 hw-id '9c:a3:ba:32:56:90'
set interfaces loopback lo address '172.30.254.2/32'
set protocols bgp 65001 address-family ipv4-unicast network 172.30.0.0/16
set protocols bgp 65001 neighbor 172.30.253.2 address-family ipv4-unicast soft-reconfiguration inbound
set protocols bgp 65001 neighbor 172.30.253.2 remote-as 'internal'
set protocols bgp 65001 parameters router-id '172.30.254.2'
set protocols ospf area 0 network '172.30.1.0/24'
set protocols ospf area 0 network '172.30.253.2/31'
set protocols ospf area 0 network '172.30.254.2/32'
set protocols ospf parameters abr-type 'cisco'
set protocols ospf parameters router-id '172.30.254.2'
set service ssh
set system config-management commit-revisions '20'
set system console device ttyS0 speed '9600'
set system host-name 'tky-R2'
set system login user user authentication encrypted-password '$6$4.V3u2EnVf8QJuR/$LkbnsMWkX7P.kaY67KYg5bYrK.WRaxiayxo3WWSrFuNKQWiUYsK7KHTb80DK4Zx3PkeGaOfBP1YXQiG.fLOub1'
set system login user vyos authentication encrypted-password '$6$rUqQwCud$c.WEe3eI/Wb/Sya.erhbbrPZ7Cw5lT1lJ4YjC2FnbMPQOE4z6PjC.I9BPpcvZDpAgYaOyyCDFzYiBaae0XpjY/'
set system name-server '133.242.0.3'
set system name-server '133.242.0.4'
set system ntp server ntp1.sakura.ad.jp
set system syslog global facility all level 'notice'
set system syslog global facility protocols level 'debug'
set system time-zone 'Asia/Tokyo'

@passerby-1
Copy link
Collaborator

user@tky-R2:~$ show ip bgp

BGP table version is 1, local router ID is 172.30.254.2, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
  i172.16.1.2/31    172.16.1.2               0    100      0 65000 i
  i172.20.0.0/16    172.16.1.2               0    100      0 65000 i
* i172.30.0.0/16    172.30.253.2             0    100      0 i
*>                  0.0.0.0                  0         32768 i

Displayed  3 routes and 4 total paths

@passerby-1
Copy link
Collaborator

user@tky-R2:~$ show ip bgp sum

IPv4 Unicast Summary:
BGP router identifier 172.30.254.2, local AS number 65001 vrf-id 0
BGP table version 1
RIB entries 5, using 920 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
172.30.253.2    4      65001     137     136        0    0    0 02:12:45            3

Total number of neighbors 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants