$ cat /etc/network/interfaces -n 1 # This file describes the network interfaces available on your system 2 # and how to activate them. For more information, see interfaces(5). 3 4 # The loopback network interface 5 auto lo 6 iface lo inet loopback 7 8 # The primary network interface 9 #auto em1 10 #iface em1 inet dhcp 11 12 auto em1 13 iface em1 inet static 14 address 10.0.12.111 15 netmask 255.255.255.0 16 up route add default gw 10.0.12.1 17 dns-search example.com 18 dns-nameservers 10.0.13.151 10.0.13.152
ubuntu 18.04
1 2 3 4 5 6 7 8 9 10 11 12 13 14
cat /etc/netplan/01-netcfg.yaml -n 1 # This file describes the network interfaces available on your system 2 # For more information, see netplan(5). 3 network: 4 version: 2 5 renderer: networkd 6 ethernets: 7 eno1: 8 addresses: [ 10.0.12.113/24 ] 9 gateway4: 10.0.12.1 10 nameservers: 11 search: [ company.com ] 12 addresses: 13 - "10.0.13.251"
$ cat /etc/fstab -n 1 # /etc/fstab: static file system information. 2 # 3 # Use 'blkid' to print the universally unique identifier for a 4 # device; this may be used with UUID= as a more robust way to name devices 5 # that works even if disks are added and removed. See fstab(5). 6 # 7 # <file system> <mount point> <type> <options> <dump> <pass> 8 # / was on /dev/sda2 during installation 9 UUID=2fd1b09a-5b92-479f-b053-199882478223 / ext4 errors=remount-ro 0 1 10 # swap was on /dev/sda1 during installation 11 UUID=97b35584-1dee-4fc3-ad9e-97898aa5c831 none swap sw 0 0 12 UUID=2a9d12ef-0475-49db-b7f3-73ba93ab14c9 /work ext4 defaults 0 0 13 tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777,size=100% 0 0
$ cat /etc/fstab -n 1 # /etc/fstab: static file system information. 2 # 3 # Use 'blkid' to print the universally unique identifier for a 4 # device; this may be used with UUID= as a more robust way to name devices 5 # that works even if disks are added and removed. See fstab(5). 6 # 7 # <file system> <mount point> <type> <options> <dump> <pass> 8 # / was on /dev/sda2 during installation 9 UUID=bce8bce1-dd31-4a69-8725-a2382a0258f2 / ext4 errors=remount-ro 0 1 10 # /home was on /dev/sdc1 during installation 11 UUID=bfc81376-3e14-461c-8fbc-c24defef5911 /home ext4 defaults 0 2 12 # swap was on /dev/sda1 during installation 13 UUID=1a555d7f-293b-459a-87f1-337ebd4dcc20 none swap sw 0 0 14 tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777,size=50% 0 0 15 //10.0.12.12/dailybuild /dailybuild cifs username=xxxxxxxxx,password=yyyyyyyy,uid=buildfarm,gid=buildfarm,dir_mode=0755,file_mode=0644 0 0
193 #======================= Share Definitions ======================= 194 195 # Un-comment the following (and tweak the other settings below to suit) 196 # to enable the default home directory shares. This will share each 197 # user's home directory as \\server\username 198 [homes] 199 comment = Home Directories 200 browseable = yes 201 202 # By default, the home directories are exported read-only. Change the 203 # next parameter to 'no' if you want to be able to write to them. 204 read only = no 205 206 # File creation mask is set to 0700 for security reasons. If you want to 207 # create files with group=rw permissions, set next parameter to 0775. 208 create mask = 0755 209 210 # Directory creation mask is set to 0700 for security reasons. If you want to 211 # create dirs. with group=rw permissions, set next parameter to 0775. 212 directory mask = 0755 213 214 # By default, \\server\username shares can be connected to by anyone 215 # with access to the samba server. 216 # Un-comment the following parameter to make sure that only "username" 217 # can connect to \\server\username 218 # This might need tweaking when using external authentication schemes 219 valid users = %S 220
22 #======================= Global Settings ======================= 23 24 [global] 25 26 #can access symbol link file in windows with samba 27 unix extensions = no 28 follow symlinks = yes 29 wide links = yes