CIFS: mount error(112): Host is down

When trying to mount a Windows share using mount, I ran into this problem: mount -v -t cifs -o username=username,password=password //hostname/sharename /mnt mount.cifs kernel mount options: ip=XXX.XXX.XXX.XXX,unc=\\hostname\sharename,user=username,prefixpath=sharename,pass=******** mount error(112): Host is downmount -v -t cifs -o username=username,password=password //hostname/sharename /mnt mount.cifs kernel mount options: ip=XXX.XXX.XXX.XXX,unc=\\hostname\sharename,user=username,prefixpath=sharename,pass=******** mount error(112): Host is down In my case, the error was… Continue reading “CIFS: mount error(112): Host is down”

Mounting a Windows share using CIFS

Windows shares can be mounted using cifs option: mount -t cifs -o username=username,password=password //hostname/sharename /mntmount -t cifs -o username=username,password=password //hostname/sharename /mnt By default, Windows shares are mounted with 0777 permissions in Linux. You can change the default permissions using dir_mode and file_mode options in mount: mount -t cifs -o username=username,password=password,dir_mode=0755,file_mode=0755 //hostname/sharename /mntmount -t cifs -o… Continue reading “Mounting a Windows share using CIFS”

Adding a secondary IP address (CentOS, Fedora, RHEL)

You will┬ánot need a secondary NIC but you’ll create virtual adapters as the secondary IP will be routing through the primary. Network configurations are stored in /etc/sysconfig/network-scripts network-scripts$ ls -l | grep ifcfg -rw-r–r–. 1 root root 304 Nov 11 19:04 ifcfg-eth0 -rw-r–r–. 1 root root 254 May 25 2017 ifcfg-lonetwork-scripts$ ls -l | grep… Continue reading “Adding a secondary IP address (CentOS, Fedora, RHEL)”