삼바 설치되어있는지 확인
rpm -qa | grep samba
ping 168.126.63.1
vi /etc/sysconfig/network-scripts/ifcfg-ens33
리눅스 = client
윈도우 = 서버
윈도우의 한 폴더를 마운트 시키면 그걸 리눅스가 쓸 수 있다.
vi /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
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=192.168.10.255
#DNS1=168.126.63.1
#DNS2=8.8.8.8
systemctl restart network
cd /temp
만약 temp가 없다면?
umount /temp
mkdir /temp
ls /temp
===마운트하기===
mount -t cifs //10.5.1.100/share /temp -o username=root -o password=1111 ==>이렇게 하면 선생님 컴퓨터에있는것을 가져올수있다.
[root@centos7 temp]# cp system-config-samba-1.2.100-2.1.noarch.rpm /tmp ==>system-까지 하고 tab누르면 됨.
[root@centos7 temp]# cd /tmp
[root@centos7 tmp]# ls
[root@centos7 tmp]# rpm -ivh system-config-samba-1.2.100-2.1.noarch.rpm --nodeps ==>system-까지 하고 tab누르면 됨.
subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.254;
option subnet-mask 255.255.255.0;
# option domain-name "kedu.edu";
# option dynamic-bootp 192.168.10.1 192.168.10.99
default-lease-time 10000;
max-lease-time 50000;
}
//share 폴더 만들어주기
[root@centos7 ~]# system-config-samba
[root@centos7 ~]# mkdir /share
[root@centos7 ~]# chmod 777 /share
system-config-samba
samba켜주
작업그룹에 WORKGROUP
설정-삼바사용자
사용자 추가 - sunny
ifconfig 10
yum -y install dhcp
//안되면
ps -ef | grep yum
kill -9 + 숫자
[root@samba sunny]# yum -y install dhcp
[root@samba sunny]# systemctl disable dnsmasq
[root@samba sunny]# vi /etc/dhcp/dhcpd.conf
//이거 밑에다가 붙여넣기
subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.254;
option subnet-mask 255.255.255.0;
# option domain-name "kedu.edu";
# option domain-name-servers 192.168.10.100; //이거 #지우면 네임서버 받는것.
range dynamic-bootp 192.168.10.1 192.168.10.99;
default-lease-time 10000;
max-lease-time 50000;
}
[root@samba sunny]# systemctl restart dhcpd //만약 여기서 에러나면 dhcpd.conf에서 오타난거
[root@samba sunny]# systemctl enable dhcpd
'네트워크 수업 > 리눅스' 카테고리의 다른 글
[리눅스] SSH와 VNC서버 구축.pdf 23.04.12 (0) | 2023.04.12 |
---|---|
리눅스 window와 폴더공유 , DHCP 연결 23.04.10 (0) | 2023.04.10 |
[리눅스] samba 서버구축.pdf 23.04.05 (0) | 2023.04.05 |
[리눅스] TELNET 23.04.05 (0) | 2023.04.05 |
[리눅스] 텔넷 서버 구축.pdf 23.04.05 (0) | 2023.04.05 |
댓글