Re: LTSP 2 NICS not works (SOLVED)
"Douglas G. Oechsler" <[email protected]> Fri, 16 Aug 2019 07:23:50 -0500
| Newsgroups | gmane.linux.terminal-server.general |
|---|---|
| Message-ID | <CADUfT+f8Co2PT54s1s=SxSuRXhom1LXw9-SyCPCHntN==2uzfg@mail.gmail.com> |
Hello All
I would like to thanks all for help and attention until now!
My steps:
Following official doc for Ubuntu pnp mode.
http://wiki.ltsp.org/wiki/
<http://wiki.ltsp.org/wiki/Installation/Ubuntu#a.29_Installing_LTSP_in_.22chrootless.22_.28previously_pnp.29_mode>
My changes:
*1 - network configuration Gui*:
I rename the 2 wired connection for:
Nic 1: Internet
Nic 2: ltspserver
*Nic 1*: config my Internet that came from Pfsense:
(ipv4 config)
IP: 10.1.1.x/24
Gateway: 10.1.1.1
Dns servers: the DNS servers IPs
*Nic 2: *config my ltspserver
(ipv4 config)
IP: 192.168.67.1/24
*and ok only this*
*2 - Open terminal and use command: *
*sudo su*
give the password
enter in the directory
*cd /etc/dnsmasq.d*
erase the file:
*rm ltsp-server-dnsmasq.conf*
config the dnsmasq to *enable-dns:*
*ltsp-config dnsmasq --enable-dns*
open the file *ltsp-server-dnsmasq.conf *with your favorite text editor
*nano ltsp-server-dnsmasq.conf*
*when file open:*
*# If another DHCP server is present on the network, you may use a proxy
range # instead. This makes dnsmasq provide boot information but not IP
leases. # (needs dnsmasq 2.48+)*
*# comment below using #*
# dhcp-range=10.1.1.0,proxy
*# And*
*# Disable the DNS server functionality of dnsmasq by setting port=0*
*# comment below using #*
#port=0
*Save*
*3 - *Open file /etc/ltsp/dhcp.conf with favorite text editor:
Veritfy the path for 64 bits:
*nano **/**etc/ltsp/dhcp.conf*
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
subnet 192.168.67.0 netmask 255.255.255.0 {
range 192.168.67.20 192.168.67.250;
option domain-name "example.com";
option domain-name-servers 192.168.67.1;
option broadcast-address 192.168.67.255;
option routers 192.168.67.1;
next-server 192.168.67.1;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
*option root-path "/opt/ltsp/images";*
*if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {*
*filename "/ltsp/images/pxelinux.0";*
*} else {*
*filename "/ltsp/images/amd64.img";*
}
}
Save file
*4 - *restart your dnsmasq
*systemctl restart dnsmasq*
*5 - *Check the status if dnsmasq no error
*systemctl status dnsmasq*
*Reboot the System*
I hope that help all
Douglas
Em ter, 6 de ago de 2019 às 11:22, Douglas G. Oechsler <[email protected]>
escreveu:
>
> Hello Richard,
>
>
>
>
>
> *What you may have missed is that you edit networkmanager on this second
> nic on tab IPv4 Settings and select Method Shared to other computers so
> that ip forwarding is working.*
>
> ummmm!
> Right, I wiill check this and to do new installation and put each nic in a
> different subnet
> I change too the file */etc/systctl.conf:*
> *from:*
>
> *# Uncomment the next line to enable packet forwarding for
> IPv4#net.ipv4.ip_forward=1*
>
> *to*
>
>
> *# Uncomment the next line to enable packet forwarding for
> IPv4net.ipv4.ip_forward=1*
>
> Thanks your attention and help
>
> Douglas
>
>
> No, Douglas, put each nic in a different subnet!! The moment you put
> both nics in the same subnet the network stops working.
>
> That is why the dnsmasq conf file uses 192.168.67.1 for the nic that is
> attached to the subnet with the clients.
>
>
> Richard
>
> Em ter, 6 de ago de 2019 às 05:51, richard kweskin <[email protected]>
> escreveu:
>
>> On 2019-08-02 22:27, Douglas G. Oechsler wrote:
>> > Hello All
>> > How are you
>> >
>> > At the first time I did install Ltsp with 1 Nic, and right, works fine
>> > But, I would want that works with 2 Nics
>> >
>> > I follow the doc:
>> > http://wiki.ltsp.org/wiki/Installation/Ubuntu
>> > PNP mode!
>> >
>> > My internet came from PFsense (at my job place) with static IP -
>> > Ltsp server: 10.1.1.x
>> > The LTSP server connect Internet ok
>> >
>> > And Second NIC following default config for Ubuntu LTSP
>> >
>> > The fat client UP (with default config 192.168.67.1) but NOT Navigate
>> > / no internet
>> >
>> > Back to Ltsp server
>> >
>> > So, I tryed to config the Second NIC with the same PFsense subnet in
>> > files:
>> > /etc/ltsp/dhcpd.conf
>> >
>> > /etc/dnsmasq.d/ltsp-server-dnsmasq.conf
>> >
>> > and by GUI Network Manager config the IP the same subnet.
>> > Why? Because, when I configured with only 1 NIC I make the same what I
>> > said (pfsense scenario) and UP, works and connect the internet.
>>
>>
>>
>>
>> _____________________________________________________________________
>> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
>> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
>> For additional LTSP help, try #ltsp channel on irc.freenode.net
>>
>
>
> --
> Douglas Giovani Oechsler
> e-mail: [email protected] <douglasgiovani-vy6/[email protected]>
> Prudentópolis - PR
> *Linux Mint*
> Seja Livre
> Usuário Linux #479644
>
--
Douglas Giovani Oechsler
e-mail: [email protected] <douglasgiovani-vy6/[email protected]>
Prudentópolis - PR
*Linux Mint*
Seja Livre
Usuário Linux #479644
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net