Liva on Fedora をRobotino 用にする
sudo dnf install dhcp-server
network managerで、有線LANのIPを固定化。
IP: 192.168.100.1
NetMask: 255.255.255.0
cat /etc/dhcp/dhcpd.conf
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp-server/dhcpd.conf.example
# see dhcpd.conf(5) man page
#
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.100 192.168.100.100;
option broadcast-address 192.168.100.255;
option routers 192.168.100.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
}
systemctl start dhcpd.service systemctl enable dhcpd.service
[root@robotino-liva etc]# cat /proc/sys/net/ipv4/ip_forward 1
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE sudo iptables -A FORWARD -i wlan0 -o enp3s0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i enp3s0 -o wlan0 -j ACCEPT
コメントを残す