TH1:
[root@server root]# cd /etc/sysconfig/network-scripts/
[root@server network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0
[root@server network-scripts]# vi ifcfg-eth0:0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.10.10.1
NETMASK=255.0.0.0
GATEWAY=10.10.10.10
[root@server network-scripts]# /etc/init.d/network restart
TH2:
[root@server root]# cd /etc/sysconfig/network-scripts/
[root@server network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0
[root@server network-scripts]# vi ifcfg-eth0:0
DEVICE=eth0
ONBOOT=no
BOOTPROTO=static
IPADDR=10.10.10.1
NETMASK=255.0.0.0
GATEWAY=10.10.10.10
[root@server network-scripts]# /etc/init.d/network restart
TH3:
[root@server root]# cd /etc/sysconfig/network-scripts/
[root@server network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0
[root@server network-scripts]# vi ifcfg-eth0:0
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.10.10.1
NETMASK=255.0.0.0
GATEWAY=10.10.10.10
[root@server network-scripts]# /etc/init.d/network restart
TH4:
[root@server root]# cd /etc/sysconfig/network-scripts/
[root@server network-scripts]# cp ifcfg-eth0 ifcfg-eth0:0
[root@server network-scripts]# vi ifcfg-eth0:0
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=no
IPADDR=10.10.10.1
NETMASK=255.0.0.0
[root@server network-scripts]# /etc/init.d/network restart
Theo Anh/Chị, trường hợp nào là hợp lý nhất?
TH1
TH2
TH3
TH4
Người quản trị dùng lệnh netstat -rn để xem thông tin bảng định tuyến trong hệ thống, kết quả được hiển thị như sau:
Theo Anh/Chị, người quản trị có thể sử dụng lệnh ____________ cũng sẽ cho kết quả tương tự như trên.
route
route -print
ifconfig -rn
routes -PRINT
Để chia sẻ tài nguyên cho người dùng thông qua dịch vụ SAMBA, người quản trị mô tả đoạn cấu hình sau:
[homes]
comment = Test;
path = %H ;
read only = no ;
valid users = %S ;
browseable = no ;
writeable = yes ;
Theo Anh/Chị, đoạn cấu hình trên có ý nghĩa gì?
Chia sẻ thư mục /H cho người dùng S.
Chia sẻ thư mục /Home cho người dùng S.
Chia sẻ thư mục home directory cho từng người dùng trong hệ thống.
Chia sẻ thư mục / cho user hệ thống có quyền truy xuất.
Dùng SAMBA để chia thư mục /usr/share cho mọi người dùng trong hệ thống sử dụng thông qua sharename là data.
Trong file cấu hình /etc/samba/smb.conf mô tả đoạn:
[data]
comment = Test;
path = %H/user/share ;
read only = no ;
valid users = %S ;
browseable = no ;
writeable = yes ;
Trong file cấu hình /etc/samba/smb.conf mô tả đoạn:
[data]
comment = Test;
path = /usr/share;
Trong file cấu hình /etc/samba/smb.conf mô tả đoạn:
[data]
comment = Test;
path = /user/share ;
users = %S ;
writeable = yes ;
Trong file cấu hình /etc/samba/smb.conf mô tả đoạn:
[/usr/share]
comment = Test;
path = /data;
Cho đoạn chương trình Shell có tên psuser :
total=0
for i in `seq 1 $1`
do
total=`expr $total + $i`
done
Theo Anh/Chị, ý nghĩa của đoạn chương trình trên là gì?
Tính tổng dãy số cộng từ 1 tới n (giá trị của n được nhập thông qua biến tham số $1)
Tính tổng dãy số cộng từ 1 tới 10
Tính tổng hai số 1 và n (giá trị của n được nhập thông qua biến tham số $1)
a,b,c đều sai
Khi ủy quyền subdomain có tên miền “csc.hcmuns.edu.vn” cho máy chủ có địa chỉ 172.16.1.1 quản lý, từ miền cha “hcmuns.edu.vn” Anh/Chị phải khai báo như thế nào là đúng?
Trong zone file thuận mô tả như sau:
csc.hcmuns.edu.vn. IN NS servercsc.csc.hcmuns.edu.vn.
servercsc.csc.hcmuns.edu.vn. IN A 172.16.1.1
Trong zone file thuận mô tả như sau:
csc.hcmuns.edu.vn. IN NS servercsc.hcmuns.edu.vn.
servercsc.hcmuns.edu.vn. IN A 172.16.1.1
Trong zone file nghịch mô tả như sau:
hcmuns.edu.vn. IN CNAME servercsc.hcmuns.edu.vn.
servercsc.hcmuns.edu.vn. IN A 172.16.1.1
Trong zone file nghịch mô tả như sau:
csc.hcmuns.edu.vn. IN MX 0 servercsc.hcmuns.edu.vn.
servercsc.hcmuns.edu.vn. IN A 172.16.1.1
Trung tâm đào tạo tin học thuê một tên miền “csc.edu.vn” từ VNNIC, trung tâm cần tổ chức DNS server trên hệ điều hành Linux theo yêu cầu như sau:
- dns1 là master name server có địa chỉ 203.162.44.69.
- dns2 là secondary name server có địa chỉ 203.162.44.70
- ngoài ra dns2 còn được tổ chức làm Web server, Mail server, FTP server, Proxy server có host name lần lượt là:
o Web server có hostname là www.csc.edu.vn
o Mail server có hostname là mail.csc.edu.vn
o FTP server có hostname là ftp.csc.edu.vn
o Proxy server có hostname là proxy.csc.edu
Theo Anh/Chị, người quản trị cần cấu hình cho forward lookup zone file (zone file thuận) như thế nào để đáp ứng yêu cầu trên?
Cấu hình zone file như sau:
$TTL 86400
@ IN SOA dns1.csc.edu.vn. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns1.csc.edu.vn.
IN NS dns2.csc.edu.vn.
IN MX 0 mail.csc.edu.vn.
IN A 203.162.44.69
mail IN CNAME dns2.csc.edu.vn.
www IN CNAME dns2.csc.edu.vn.
ftp IN CNAME dns2.csc.edu.vn.
proxy IN CNAME dns2.csc.edu.vn.
Cấu hình zone file như sau:
$TTL 86400
@ IN SOA dns1.csc.edu.vn. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns1.csc.edu.vn.
IN MX 0 mail.csc.edu.vn.
dns1 IN A 203.162.44.69
dns2 IN A 203.162.44.70
mail IN CNAME dns2.csc.edu.vn.
ftp IN CNAME dns2.csc.edu.vn.
www IN CNAME dns2.csc.edu.vn.
proxy IN CNAME dns2.csc.edu.vn.
Cấu hình zone file như sau:
$TTL 86400
@ IN SOA dns1.csc.edu.vn. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns1.csc.edu.vn.
IN NS dns2.csc.edu.vn.
IN MX 0 mail.csc.edu.vn.
dns1 IN A 203.162.44.69
IN A 203.162.44.70
dns2 IN CNAME dns1.csc.edu.vn
mail IN CNAME dns2.csc.edu.vn.
ftp IN CNAME dns2.csc.edu.vn.
www IN CNAME dns2.csc.edu.vn.
proxy IN CNAME dns2.csc.edu.vn.
Cấu hình zone file như sau:
$TTL 86400
@ IN SOA dns1.csc.edu.vn. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS dns1.csc.edu.vn.
IN NS dns2.csc.edu.vn.
IN MX 0 mail.csc.edu.vn.
dns1 IN A 203.162.44.69
dns2 IN A 203.162.44.70
mail IN CNAME dns2.csc.edu.vn.
ftp IN CNAME dns2.csc.edu.vn.
www IN CNAME dns2.csc.edu.vn.
proxy IN CNAME dns2.csc.edu.vn.
Lệnh ___________ hiển thị danh sách các tiến trình đang hoạt động trong hệ thống theo dạng như sau:
Chia sẻ với bạn bè của bạn: |