본문 바로가기
728x90

전체 글239

Docker 23.05.08 2023.05.08 - [네트워크 수업/Docker] - Docker.pdf 23.05.08 dot을 도커라고 한다. host OS의 커널을 공유한다. Container Deployment 는 Guest OS가 없다. 바로 얹혀짐. =>가상화가 훨씬 수월해지고 간편해짐. 속도도 빠름. KVM 주 OS의 커널을 빌려쓴다. CentOS7, RHEL7 # yum install -y yum-utils // yum-config-manager (yum 설정 정보와 저장소 관리자 설치) # yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo # yum install -y docker-ce // Community Ed.. 2023. 5. 8.
Tacacs+ 23.04.21 172.16.10 참고 : 2023.04.21 - [네트워크 수업] - Privilege Level.pdf 23.04.21 ASW1] confi ter line c 0 no privilege level 15 exit enable secret ccna123 enable secret level 2 ccna2 enable secret level 3 ccna3 ASW1(config)#privilege exec level 2 show run ASW1(config)#privilege exec level 3 confi ter 디스커터블이라고 어떤 명령어를 듣게 할거다라고 지정해주는것. 가령 level 2 (level2 에서 show run할수 있고 level3에서 config ter를 할수있다. 이런 명령어를 할 수.. 2023. 4. 21.
파이썬이랑 DB연동하기 23.04.21 import pymysql #변수선언# con,cur=None,None data1,data2,data3="","","" sql='' con = pymysql.connect( host="127.0.0.1", user="root", port=3306, password="1234", db="shopdb", charset='utf8') cur = con.cursor() while True : data1 = input("memberID => ") if data1 == '': break data2 = input("memberName => ") data3 = input("memberAddress => ") sql = "INSERT INTO memberTbl VALUES ('"+data1+"','"+data2+"','.. 2023. 4. 21.
23.04.20 NFS NFS NAS처럼 얘도 파일을공유하는 기능이있다. centOS켜주고 vi /etc/sysconfig/network-scripts/ifcfg-ens33 하고 ip 제대로 넣었는지 확인 '' TYPE=Ethernet BOOTPROTO=static DEFROUTE=yes NAME=ens33 DEVICE=ens33 ONBOOT=yes IPADDR=192.168.50.102 PREFIX=24 GATEWAY=192.168.50.100 NETWORK=192.168.50.0 BROADCAST=192.168.20.255 '' // systemctl restart network [root@samba ~]# rpm -qa nfs-utils nfs-utils-1.3.0-0.68.el7.x86_64 ==>설치가 되어있지만 최신.. 2023. 4. 20.
메일서버 23.04.18 서버랑 연결하기 전 알아야할 것! 메일서버는 DNS없이 사용이 불가능하다. 송신하는 단계 host1.deep.com 서버에서 soft.com 주소를 가진 메일 서버를 찾으려면 아래의 두 과정을 거친다. 1) DNS에게 soft.com의 메일서버가 무엇인지 물어본다. 2) 답이 나오면 그 곳으로 연결한다. 수신을 하는 단계에서는 송신자측(host1.deep.com)이 실제로 DNS에 존재하는 서버인지를 검사한다. ==> 결국 메일을 송수신하기 위해서는 DNS가 반드시 필요하다는 결론을 얻게 된다. WIN2016 dnsmgmt.msc kedu.edu와 ictsec.com 을 만들 것. kedu.edu => DNS, www, mail, MX (192.168.50.101,102) ictsec.com => DNS.. 2023. 4. 18.
23.04.17 isp - mac바꿔주기 vtp vlan trunking https://onebyone1.tistory.com/176 switch의 모든포트는 bpdu를 2초마다 주고받는다(bpdu의 hello는 2초다.). 근데 교무1은 switch가 아니다. 그럼bpdu를 보내면 안된다. 그걸 설정해주는게 spanning-tree portfast bpduguard. forward-delay port fast하면 시간 절약. 바로 깨어나서. 결론 : portfast 가 선언된 단자는 컴퓨터 달린 단자. 글로벌모드에서 bpduguard한다. 검증하려면? do show ether sum show interface trunking CE 프레임릴레이 모른다면? do show frame-relay pvc | include DL.. 2023. 4. 17.
[SQL] 23.04.17 인덱스 alter table usertbl drop primary key; //테이블의 구조가 바뀌는것. create schema testdb; drop schema testdb; create table tbl1( a int primary key, b int, c int); show index from tbl1; create table tbl2( a int primary key, b int unique, c int unique, d int); show index from tbl2; create table tbl3( a int unique, b int unique, c int unique, d int); show index from tbl3; create table tbl4( a int unique not.. 2023. 4. 17.
[리눅스] UTM9 - Firewall 23.04.14 2023.04.12 - [네트워크 수업/리눅스] - [리눅스] 방화벽 UTM9 23.04.12 UTMPermalink 1. in -> out - 모든 트래픽 허용 2. in -> dmz - DNS, HTTP, HTTPs, POP3, SMTP, IMAP, FTP 3. dmz -> in - 모두 차단 4. dmz -> out - DNS, SMTP 5. out -> in - 모두 차단 6. out -> dmz - DNS, HTTP, HTTPs, SMTP, FTP Network Protection -> Firewall 1. Sources(Internal) + Services(Any) + Destinations(Any) 2. Sources(Internal) + Services(DNS, FTP, HTTP, HTTP.. 2023. 4. 14.
23.04.14 OSPF CCIE 코드 정리 //R1 enable conf t hostname R1 int s1/0 no sh encap fram no fram inverse clock rate 64000 int lo 0 ip add 1.1.1.1 255.255.255.0 do show frame-relay pvc | include DLCI int s1/0.1 m ip add 1.1.11.1 255.255.255.0 ip ospf hello-interval 10 fram map ip 1.1.11.2 102 br fram map ip 1.1.11.3 103 br int f0/0 no sh ip add 1.1.17.1 255.255.255.0 int f0/1 no sh ip add 1.1.18.1 255.255.255.0 router ospf 1 ro.. 2023. 4. 14.
[SQL] DBMS 23.04.14 2023. 4. 14.
[JavaScript] 제이쿼리 23.04.14 window.onload = function(){ const button = document.getElementById('button'); button.onclick = function(){ return false; //이러면 기능 사용 X. } } 버튼 #box{ width : 100px; height : 100px; background-color : aqua; } #box.hover{ background-color: beige; border-radius: 50px; } $(document).ready(function () { $('h1').css('color', 'red'); $('h1').css('background', 'black'); $('img').attr('src', 'http://place.. 2023. 4. 14.
[네트워크] OSPF / Frame-Relay 23.04.13 multi point와 p-to-p는 죽어도 neighbor 못맺는다. DR뽑는것끼리, DR안뽑는것끼리 이웃 맺을수있다. 그리고 Hello를 맞춰줘야한다.(10초로) 구석탱이는 다 stub으로 준다. 중간에 삼각형은 Routed. no switchport backbonarea 0 이더채널 프레임릴레이 dicl로 엮고 2023. 4. 13.
23.04.13 OSPF 저번시간 이어서 : 2023.04.11 - [네트워크 수업] - [실습] OSPF 23.04.11 교재 : 2023.04.11 - [네트워크 수업] - OSPF.pdf 23.04.11 R1(config)#router ospf 11 R1(config-router)#no area 12 stub R2(config)#router ospf 11 R2(config-router)#no area 12 stub no-summary R2(config-router)#no area 12 stub R3(config)#router ospf 11 R3(config-router)#no area 34 nssa default-information-originate R4(config)#router ospf 11 R4(config-rout.. 2023. 4. 13.
[Javascript] 함수23.04.13 const 함수 = function() { alert('함수_01'); alert('함수_02'); } const sum = 0; console.log(함수); 함수(); //함수 실행 console.log(typeof(함수)); //함수 타입이 뭔지. console.log(typeof(sum)); function 함수02(){ alert('함수02_01'); alert('함수02_02'); } console.log(함수02); 함수02(); console.log(typeof(함수02)); //함수선언 function f(x){ return x * x; } //함수 호출 f(30); console.log(f(30)); callback함수 var callback = function () { console... 2023. 4. 13.
[리눅스] 방화벽 UTM9 23.04.12 도시, 시간 설정하고 inside인 eth0설 다시 재접속하고 아이디, 비번 admin netw0rk [root@samba ~]# systemctl restart network [root@samba ~]# systemctl restart httpd 당연히 핑 안됨. 내가 써준 정책 이외에는 아무것도 넘을 수 없다. 그 정책을 설정해보자 그래도 핑 안됨 왜?? utm9 에서 route하고 보면 서브넷마스크가 8비트여야하는데 24비트로 되어있다. default route 10.0.0.1 로 설정. 새로고침하고 핑 날리면 날아간다. 6가지 경우의 변수를 따져서 내가 허용하고 싶은거 아닌거 일일이 따져서 정해준다 in → DMZ in → ext DMZ → in ext → in ext → DMZ 2023. 4. 12.
[리눅스] 23.04.12 교재: 2023.04.12 - [네트워크 수업/리눅스] - [리눅스] SSH와 VNC서버 구축.pdf 23.04.12 [root@samba /]# rpm -qa | grep openssh-server openssh-server-7.4p1-21.el7.x86_64 [root@samba /]# getenforce Disabled [root@samba /]# firewall-config ==> ssh 방화벽 풀기 [root@samba /]# systemctl start sshd.service [root@samba /]# systemctl status sshd.service ps -ef | grep dnsmasq kill -9 숫자 //다시 [root@samba /]# systemctl start sshd.se.. 2023. 4. 12.
[리눅스] SSH와 VNC서버 구축.pdf 23.04.12 2023. 4. 12.
[JavaScript] 조건문, 반복문 23.04.12 if문 var date = new Date(); //alert(date); const year = date.getFullYear(); const month = date.getMonth() + 1; //0부터 시작되기 때문에 +1해줘야 한다. const dates = date.getDate(); const day = date.getDay(); const hours = date.getHours(); const minutes = date.getMinutes(); const seconds = date.getSeconds(); const weekArr = ['일','월','화','수','목','금','토']; console.log(year +'년 ' +month +'월 '+ dates +'일 '+ weekArr[.. 2023. 4. 12.
[실습] OSPF 23.04.11 11.11.0.0 r1 r2는 nbma r2 r3 는 point-to-multi r3 r4는 자동으로 단축키 ali exec c conf t ali exec r show run ali exec b show ip int brief ali exec i show ip route ena confi ter int s1/0 no shut encap frame no frame inver ip address 넣기 R1] int s1/0 ip add 11.11.12.1 255.255.255.0 frame map ip 11.11.12.2 102 br int loo0 ip add 11.11.1.1 255.255.255.0 R2] int s1/0.12 m ip add 11.11.12.2 255.255.255.0 fram ma.. 2023. 4. 11.
[오류] Win702과 리눅스가 연결이 안되는 이유 - samba를 설치할거면 samba 방화벽 설정 share 폴더 접속이 자꾸 안됐다... 해결 ==> firewall-config [root@centos7 usr]# getenforce ==>확인 Disabled 어이없다 내 삽질의 이유가 이거였다니 HWwwwwww 2023. 4. 11.
728x90