반응형
[2022.05.10] Setup a Static IP Address On Ubuntu16.04
1-1. UI 로 간단하게 ipv4 setting (Ubuntu 16.04) -> recommend
a. Ubuntu turn on > System Settings > Network > Option
- Ipv4 Settings > method : Manual
- Address : 고정 할당 IP 주소
- Netmask : 24
- Gateway : 192.168.0.1
- DNS Servers: 8.8.8.8
1-2. Setup a Static IP Address (Ubuntu16.04)
a. sudo vi /etc/network/interfaces
b. config setup
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto ens160
iface ens160 inet static
address 192.168.214.11
gateway 192.168.1.1
netmask 255.255.0.0
dns-nameservers 8.8.8.8
여기서 위에 보면 ifocnfig 했을 때 ens160 등으로 출력
- auto *** (*** = ifconfig)로 나오는 것으로 static ip를 설정
Linux 에서 ip 확인
[root@localhost TestLib]# ifconfig
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.214.11 netmask 255.255.0.0 broadcast 192.168.255.255
remote server Run
root@vmadmin-virtual-machine:/BuFF/TestLib# sh run_remote.sh 192.168.214.11
No handlers could be found for logger "RobotFramework"
Robot Framework remote server at 192.168.214.11:8270 started.
vmadmin@vmadmin-virtual-machine:/BuFF/TestLib$ ./CommonLibrary.py 192.168.214.11
No handlers could be found for logger "RobotFramework"
Robot Framework remote server at 192.168.214.11:8270 started.
a. sh run_remote.sh IP주소
b. ./CommonLibrary.py IP주소
* error 1 (solve)
a. [ ERROR ] Error in file 'C:\Users\vmadmin\Desktop\VNIX\common\keywords_lowlevel.txt': Importing test library 'ArchiveLibrary' failed: ImportError: No module named ArchiveLibrary
Traceback (most recent call last):
None
pip install robotframework-ArchiveLibrary==0.4.0
- 시스템 환경 변수 설정 (해당 Library path)
반응형
'Web > Server & MySQL' 카테고리의 다른 글
[2022.05.10] How to install mysql on ubuntu 20.04 ? (+ jdbc plugin) (0) | 2022.05.10 |
---|---|
[2022.05.10] PF Test Script on Linux(Ubuntu-20.04) ? (0) | 2022.05.10 |
[2022.05.02] How to install apache2 on Ubuntu20.04 ? (0) | 2022.05.02 |
[2021.08.29] How to Create View Tables on MySQL? (0) | 2021.08.29 |
[2021.08.21] How to ports forward for multiple hosts in nginx? (+finhub Project Maintenance) (0) | 2021.08.21 |
댓글