본문 바로가기
728x90

네트워크 수업141

[리눅스] 텔넷 서버 구축.pdf 23.04.05 2023. 4. 5.
OSPF 23.04.04 OSPF 란 Open Shortest Path First 1. 가장 널리 사용되는 Link-State 라우팅 프로토콜이다. 2. 다익스크라 Dizkstra가 발명해서.., SPF(Shortest Path First) 알고리즘 3. IP Protocol 번호 89번 사용 4. Multicast 방식으로 정보를 교환한다. → 224.0.0.5(All-OSPF-Router) → 224.0.0.6(DR, BDR 수신) 5. Metric으로 cost를 사용한다. cost = 10^8/Bandwidth → total cost 는 각 구간의 cost 를 모두 합한 것이다. 6. Area별 강력한 축약 기능을 제공한다. 7. 모든 Area는 Backborn Area 0번에 접해야한다. 아까 eigrp 실습한거에 그냥 .. 2023. 4. 4.
EIGRP default-route 23.04.04 4.4.0.0 기본설정 공통] ena conf t no ip domain lookup line c 0 logg sy exec-timeout 0 exit int s1/0 no shut encapsulation frame-relay no frame-relay inverse-arp clock rate 64000 [R1] hostname R1 int lo0 ip add 4.4.1.1 255.255.255.0 int s1/0 ip address 4.4.12.1 255.255.255.0 frame-relay map ip 4.4.12.2 102 br R2] hostname R2 int lo0 ip add 4.4.2.2 255.255.255.0 int s1/0.12 m ip add 4.4.12.2 255.255.255.. 2023. 4. 4.
리눅스 FTP HTTP DNS 총정리 23.04.03 공통설정 GNS설정 R1#confi ter R1(config)#int f0/1 R1(config-if)#shut R1(config-if)#mac-add 1234.1234.1212 R1(config-if)#no shut R1(config-if)#ip add dhcp R1(config-if)#int f0/0 R1(config-if)#ip add 192.168.10.254 255.255.255.0 R1(config-if)#no shut R1(config-if)#ip nat inside R1(config-if)#int f0/1 R1(config-if)#ip nat outside R1(config-if)#exit R1(config)#access-list 10 permit 192.168.10.0 0.0.0.255 .. 2023. 4. 3.
[리눅스] DNS 프로젝트관련(3) 23.04.03 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.31 - [네트워크 수업/리눅스] - [리눅스] 아파치 - 프로젝트관련(2) 23.03.31 2023.04.03 - [네트워크 수업/리눅스] - [리눅스] 프로젝트관련(3) 23.04.03 교재 : 2023.04.03 - [네트워크 수업] - DNS 서버.pdf 23.04.03 [root@centos7 ftp]# cd var/ftp/pub [root@centos7 pub]# vi /etc/sysconfig/network-scripts/ifcfg-ens33 [root@centos7 pub]# systemctl restart network [root@ce.. 2023. 4. 3.
[리눅스] 아파치 - 프로젝트관련(2) 23.03.31 2023.03.31 - [네트워크 수업/리눅스] - [리눅스] Apache Web Server.pdf 23.03.31 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.31 - [네트워크 수업/리눅스] - [리눅스] 아파치 - 프로젝트관련(2) 23.03.31 2023.04.03 - [네트워크 수업/리눅스] - [리눅스] 프로젝트관련(3) 23.04.03 https://onebyone1.tistory.com/247 이어서 참고.. [root@centos7 heejae]# rpm -qa | grep httpd ==>rpm이 설치된 httpd를 찾아줘(Query(문의) 및 All(전부)) ==>앗 설치가.. 2023. 3. 31.
[리눅스] Apache Web Server.pdf 23.03.31 2023. 3. 31.
[리눅스] 23.03.31 2023.03.31 - [네트워크 수업/리눅스] - Grub 접근 보안.pdf 23.03.31 Grub Grub전에는 LILO라는게 있었다. Micro사에 부트로더는 msconfig가 설정되어있다. [root@centos7 heejae]# vi /etc/default/grub ==>그냥 확인 [root@centos7 heejae]# vi /boot/grub2/grub.cfg ==>관리자도 건드리면안되는 [root@centos7 heejae]# vi /etc/grub2.cfg ==>위에거와 동일 마지막줄에 cat 최고관리자는 grubadmin으로 password grubadmin 1111 EOF 적기 //grub으로 들어가려고 e 키 눌렀는데 그 키를 못누르게 하는것. e를 누르면 비밀번호를 묻겠다. [r.. 2023. 3. 31.
[리눅스] 23.03.31 교재 : 2023.03.31 - [네트워크 수업] - 네트워크운영관리.pdf (telnet과 ssh의 차이점) 23.03.31 지난 수업 이어서 : 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux) 23.03.30 R1] R1(config)#username admin password cisco123 R1(config)#line vty 0 4 R1(config-line)#login local R1(config-line)#enable password cisco123 Win702 로 이동 cmd => ping 192.168.10.254 telnet local 지우고 텔넷 내부 패스워드 설정해보기 R1(config)#line vty 0 4 R1(confi.. 2023. 3. 31.
[리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.31 - [네트워크 수업/리눅스] - [리눅스] 아파치 - 프로젝트관련(2) 23.03.31 2023.04.03 - [네트워크 수업/리눅스] - [리눅스] 프로젝트관련(3) 23.04.03 리눅스의 보안정책을 셀 리눅스라고 한다. 프로그램설치하려면 selinux에 걸린다. 그래서 해제해야함. [root@centos7 temp]# vi /etc/sysconfig/selinux [root@centos7 temp]# setenforce 0 ==>1차방화벽 해제(근데 다시 재부팅하면 해제가 풀림) [root@centos7 temp]# firewall-conf.. 2023. 3. 30.
[리눅스] 허가권(numeric/symbolic) 23.03.30 [root@centos7 temp]# yum -y remove vi ==> yum 삭제 Loaded plugins: fastestmirror, langpacks No Match for argument: vi No Packages marked for removal yum은 인터넷이 되야한다. 어댑터를 bridge로 설정 [root@centos7 temp]# vi /etc/sysconfig/network-scripts/ifcfg-ens33 BOOTPROTO=dhcp NAME=ens33 DEVICE=ens33 ONBOOT=yes #IPADDR=192.168.10.100 #GATEWAY=192.168.10.254 #NETMASK=255.255.255.0 #NETWORK=192.168.10.0 #BROADCAST.. 2023. 3. 30.
외워야할 이론 23.03.30 23.03.31 ip tcp udp 는 헤더구조 암기해야한다. sink포인트?? ipv4 데이터그램 >>첫번째줄 : 버전 / 헤더길이 / 서비스 유형 / 전체길이 헤더부분 20바이트 버전 4비트 (0100) 헤더길이 5비트 (0101) 5*32비트 = 160 나누기 8 =>20바이트(헤더포함) (최대 60바이트) type of service 데이터는 request reply가 끝난다음에 간다. 2023.03.21 - [네트워크 수업] - QoS합본 (FromPDF).pdf 23.03.21 23.03.27 QoS Prec의 숫자가 높을수록 계급이 높다(5까지 줄수있음) QoS(Quality of Service) 서비스 품질 제어에 이용되며, TOS(Type of Service)필드 라고도 한다.(지금은 안쓴다) D : D.. 2023. 3. 30.
[리눅스] RPM 23.03.29 rpm 파일 .i386.rpm 에서 i 는 intel rpm 사용법 설치 : rpm -i 삭제 : rpm RPM 보기 [root@centos7 temp]# rpm -aq | grep vim ==> 이게 vi 다. vim-common-7.4.629-7.el7.x86_64 vim-minimal-7.4.629-7.el7.x86_64 vim-enhanced-7.4.629-7.el7.x86_64 vim-filesystem-7.4.629-7.el7.x86_64 [root@centos7 user1]# df ==>마운트 테이블을 보는 간단한 명령어 Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 480776 0 480776 0% /dev tmpfs 49785.. 2023. 3. 29.
[리눅스] linux package installation.pdf 23.03.29 2023. 3. 29.
[실습] EIGRP 부하분산(2) 23.03.29 point multi 상관x 기본 설정 & 라우팅 더보기 공통] int s1/0 no shut encap frame no frame inver clock rate 64000 R1] int s1/0.12 m ip add 1.1.12.1 255.255.255.0 frame map ip 1.1.12.2 102 br int loo0 ip add 1.1.1.1 255.255.255.0 int s1/0.12 R2] int s1/0.12 m ip add 1.1.12.2 255.255.255.0 frame map ip 1.1.12.1 201 brint loo0 ip add 1.1.2.2 255.255.255.0 int s1/0.23 m ip add 1.1.23.2 255.255.255.0 fram map ip 1.1... 2023. 3. 29.
[실습] EIGRP 부하분산 23.03.28 int s1/0 no shut encap frame no frame inverse R1] R1(config-if)#int s1/0.12 p R1(config-subif)#ip add 28.28.12.1 255.255.255.0 R1(config-subif)#frame int 102 br R1(config-subif)#int s1/0.13 p R1(config-subif)#ip add 28.28.13.1 255.255.255.0 R1(config-subif)#frame int 103 br R1(config-fr-dlci)#int loo0 R1(config-if)#ip add 28.28.1.1 255.255.255.0 R2] R2(config-if)#int s1/0.12 p R2(config-subif)#i.. 2023. 3. 28.
[리눅스] 리눅스 압축 도구.pdf 23.03.28 2023. 3. 28.
[리눅스] 압축하기 tar, 압축풀기 gz 23.03.28 압축을한게 tar gz가 압축풀기 압축하기 [root@centos7 temp]# touch a b c d e ==>디렉터리 만들기 [root@centos7 temp]# tar -cvf test.tar ./a ./b ./c ./d ./e ==> test에다 디렉터리 묶기 ./a ./b ./c ./d ./e [root@centos7 temp]# ls test.tar [root@centos7 temp]# mv test.tar / [root@centos7 temp]# rm -rf ./* [root@centos7 temp]# gzip /test.tar [root@centos7 temp]# ls /test.tar* /test.tar.gz [root@centos7 temp]# gzip -d /test.tar.gz [.. 2023. 3. 28.
[리눅스] 사용자계정, 홈디렉터리 변경, 유저 패스워드 23.03.28 참고 : 2023.03.28 - [네트워크 수업/리눅스] - 사용자계정.pdf [root@centos7 ~]# cat /etc/passwd | more ==> |(파이프)는 앞 명령어 실행하고 뒤에거 실행해다오 라는 뜻 root:x:0:0:root:/root:/bin/bash ==> x가 패스워드(우리는 못알아봄) : 0은 user아이디 : 그다음0은 admin아이디 : root는 코맨트 : /root는 root사용자가 쓰는 홈디렉터리 : /bin/bash 는 명령어 해석기 shell중에 bone again shell을 쓴다. [root@centos7 ~]# cat /etc/shadow | more ==>보안을 요하는 특수계정이 여기에 들어있다. root:$6$pwFHMPUP5SAhjihb$jbphBZa.. 2023. 3. 28.
[리눅스] vmware와 연결 23.03.27 입력 리다이렉션 > : 입력 리다이렉션 c 하면 c로 병합된다. [root@centos7 /]# mkdir -p /test1/test2 [root@centos7 /]# touch /test1/test2/a [root@centos7 /]# cat >> /test1/test2/a this is test file :qw! ^Z [1]+ Stopped cat >> /test1/test2/a [root@centos7 /]# [root@centos7 /]# mkdir /test7 [root@centos7 /]# cp -r /test1/* /test7/ =>통째로 복사 [root@centos7 /]# ls -R /test7 =.. 2023. 3. 27.
728x90