Hi,
For some time now I have connected my computers in a network using fstab and smb.conf.
In smb.conf I share those partitions/folders of the local computer I want to share (i.e. /home/DeMus), make them browseable, not read-only and writable.
In fstab I mount the shared folders of other computers
(i.e. //192.168.1.111/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0)
One thing I have to add is this: in my router I use DHCP but with reservations regarding the addresses. I have connected the mac address of a network-card to a fixed IP-address in the router. So when a computer boots, the mac address is send to the router, looked up in a list and the connected IP-address is used for that computer. Always the same address, which makes it easy to use the mount point in fstab, plus the computers themselves still use DHCP.
So far it has always worked.
Now I also have a laptop with a wired and a wireless connection. The wired connection gets .122, the wireless connection always gets .123 at the end of the address.
Now in the other computers I wrote 2 lines in the fstab file for each shared folder in the new laptop:
//192.168.1.122/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0
//192.168.1.123/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0
Although this works, I still believe there should be a neater way of doing this. I use the laptop both wired and wireless so it can use both addresses alternatively.
Who can help me with this?
For some time now I have connected my computers in a network using fstab and smb.conf.
In smb.conf I share those partitions/folders of the local computer I want to share (i.e. /home/DeMus), make them browseable, not read-only and writable.
In fstab I mount the shared folders of other computers
(i.e. //192.168.1.111/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0)
One thing I have to add is this: in my router I use DHCP but with reservations regarding the addresses. I have connected the mac address of a network-card to a fixed IP-address in the router. So when a computer boots, the mac address is send to the router, looked up in a list and the connected IP-address is used for that computer. Always the same address, which makes it easy to use the mount point in fstab, plus the computers themselves still use DHCP.
So far it has always worked.
Now I also have a laptop with a wired and a wireless connection. The wired connection gets .122, the wireless connection always gets .123 at the end of the address.
Now in the other computers I wrote 2 lines in the fstab file for each shared folder in the new laptop:
//192.168.1.122/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0
//192.168.1.123/home /media/home cifs rw,username=guest,password=,uid=1000,iocharset=utf 8,codepage=unicode,unicode 0 0
Although this works, I still believe there should be a neater way of doing this. I use the laptop both wired and wireless so it can use both addresses alternatively.
Who can help me with this?
Comment