ESXi에 Import 가능한 이미지 다운로드
https://support.vyos.io/en/support/solutions/articles/103000099217-vyos-1-2-9-s1
아래 이미지 중 "VyOS 1.2.9-S1 for VMware with Cloud-init" 다운로드
## 이미지 파일명 : vyos-1.2.9-S1-cloud-init-vmware.ova
ESXi Host에 이미지 배포
위에서 다운로드 받은 파일 선택
VM 이름과 폴더 지정
배포할 ESXi Host 지정
Ignore All 선택
Deployment Size 선택
Datastore 및 Provisioning Type 선택
WAN은 vyos와 상단 Router가 연결될 인터페이스므로 상단 Router와 연결 가능한 Port Group 선택
LAN은 vyos의 Management Network랑 연결될 Port Group 선택
## 나중에 필요한 인터페이스는 Edit Settings에서 더 추가 필요
기본 User인 vyos 계정의 암호 설정
vyos의 WAN 인터페이스는 상단 Physical Router와 연결되는데, 본 LAB 환경에서는 DHCP로 IP Address를 할당받기 때문에 설정이 필요 없음
DNS와 NTP 서버 주소만 기존 DNS/NTP 서버 주소로 설정
배포된 vyos VM Power On 전, 인터페이스 4개 추가하고 Power On
vyos 로그인 후 인터페이스 확인
## eth0는 DHCP로 할당받은 IP Address
vyos 상단 Router로 Ping 테스트
# ping x.x.x.254
Routing Table 확인
## Default Route Path가 다음과 같이 상단 Router 주소로 설정되어 있는지 확인
## Default Route Path가 설정되어 있지 않은 경우 아래 명령어로 설정
$ configure # set protocols static route 0.0.0.0/0 next-hop <상단 router 주소> distance '1' # commit # save |
각 인터페이스 설정
https://support.vyos.io/en/support/solutions/articles/103000096319-vlan-sub-interfaces-802-1q-
vyos@vyos:~$ configure [edit] vyos@vyos# show interfaces ethernet eth0 { address dhcp hw-id 00:50:56:a1:20:07 } ethernet eth1 { hw-id 00:50:56:a1:02:2e } ethernet eth2 { hw-id 00:50:56:a1:c8:8c } ethernet eth3 { hw-id 00:50:56:a1:b6:a2 } ethernet eth4 { hw-id 00:50:56:a1:62:5e } ethernet eth5 { hw-id 00:50:56:a1:4c:47 } loopback lo { } [edit] vyos@vyos# set interfaces ethernet eth1 address '192.168.1.1/24' [edit] vyos@vyos# set interfaces ethernet eth2 address '192.168.10.1/24' [edit] vyos@vyos# set interfaces ethernet eth3 address '192.168.11.1/24' [edit] vyos@vyos# set interfaces ethernet eth4 vif 1612 description 'VLAN 1612' [edit] vyos@vyos# set interfaces ethernet eth4 vif 1612 address '192.168.12.1/24' [edit] vyos@vyos# set interfaces ethernet eth5 vif 1613 description 'VLAN 1613' [edit] vyos@vyos# set interfaces ethernet eth5 vif 1613 address '192.168.13.1/24' [edit] vyos@vyos# commit [edit] vyos@vyos# save Saving configuration to '/config/config.boot'... Done [edit] vyos@vyos# exit vyos@vyos:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 x.x.x.89/20 u/u eth1 192.168.1.1/24 u/u eth2 192.168.10.1/24 u/u eth3 192.168.11.1/24 u/u eth4 - u/u eth4.1612 192.168.12.1/24 u/u VLAN 1612 eth5 - u/u eth5.1613 192.168.13.1/24 u/u VLAN 1613 lo 127.0.0.1/8 u/u ::1/128 vyos@vyos:~$ ip route default via x.x.x.254 dev eth0 proto static metric 20 x.x.x.0/20 dev eth0 proto kernel scope link src x.x.x.89 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 192.168.10.0/24 dev eth2.1610 proto kernel scope link src 192.168.10.1 192.168.11.0/24 dev eth3.1611 proto kernel scope link src 192.168.11.1 192.168.12.0/24 dev eth4.1612 proto kernel scope link src 192.168.12.1 192.168.13.0/24 dev eth5.1613 proto kernel scope link src 192.168.13.1 |
Virtual Switch의 VLAN Trunk 설정 필요
Virtual Router에서 Management Network으로 Ping 테스트
vyos@vyos:~$ ping 192.168.1.2 PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data. 64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=0.355 ms 64 bytes from 192.168.1.2: icmp_seq=2 ttl=128 time=0.290 ms ^C --- 192.168.1.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.290/0.322/0.355/0.037 ms vyos@vyos:~$ ping 192.168.1.101 PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data. 64 bytes from 192.168.1.101: icmp_seq=1 ttl=64 time=0.208 ms 64 bytes from 192.168.1.101: icmp_seq=2 ttl=64 time=0.107 ms ^C --- 192.168.1.101 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1031ms rtt min/avg/max/mdev = 0.107/0.157/0.208/0.052 ms |
DNS 서버와 NSX Manager에서 Virtual Router로 Ping 테스트
C:\>ping 192.168.1.1 Pinging 192.168.1.1 with 32 bytes of data: Reply from 192.168.1.1: bytes=32 time<1ms TTL=64 Reply from 192.168.1.1: bytes=32 time<1ms TTL=64 Ping statistics for 192.168.1.1: Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms Control-C ^C root@nsx-mgr01:~# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.124 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.097 ms ^C --- 192.168.1.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1028ms rtt min/avg/max/mdev = 0.097/0.110/0.124/0.013 ms |
## 추가
MTU 9000 설정
vyos@vyos# set interfaces ethernet eth1 mtu 9000 [edit] vyos@vyos# set interfaces ethernet eth2 mtu 9000 [edit] vyos@vyos# set interfaces ethernet eth3 mtu 9000 [edit] vyos@vyos# set interfaces ethernet eth4 mtu 9000 [edit] vyos@vyos# set interfaces ethernet eth5 mtu 9000 [edit] vyos@vyos# commit [edit] vyos@vyos# save Saving configuration to '/config/config.boot'... Done [edit] vyos@vyos:~$ configure [edit] vyos@vyos# show interfaces ethernet eth0 { address dhcp hw-id 00:50:56:a1:20:07 } ethernet eth1 { address 192.168.1.1/24 hw-id 00:50:56:a1:02:2e mtu 9000 } ethernet eth2 { address 192.168.10.1/24 hw-id 00:50:56:a1:c8:8c mtu 9000 } ethernet eth3 { address 192.168.11.1/24 hw-id 00:50:56:a1:b6:a2 mtu 9000 } ethernet eth4 { hw-id 00:50:56:a1:62:5e mtu 9000 vif 1612 { address 192.168.12.1/24 description "VLAN 1612" } } ethernet eth5 { hw-id 00:50:56:a1:4c:47 mtu 9000 vif 1613 { address 192.168.13.1/24 description "VLAN 1613" } } loopback lo { } [edit] |
'Networking' 카테고리의 다른 글
[NSX] Setup - 6. Edge Uplink Profile 생성과 Edge 설치 (0) | 2023.09.16 |
---|---|
[NSX] Setup - 5. Host Uplink Profile 생성과 Transport Node 설치 (0) | 2023.09.16 |
[NSX] Setup - 3. NSX 용 분산 스위치 생성 (0) | 2023.09.16 |
[NSX] Setup - 2. Transport Zone과 TEP IP Address Pool 생성 (0) | 2023.09.16 |
[NSX] Setup - 1. NSX Manager 설치 (0) | 2023.09.16 |