Article 5KZD4 Slackware current rc.inet1.conf netmask problem.

Slackware current rc.inet1.conf netmask problem.

by
gildbg
from LinuxQuestions.org on (#5KZD4)
Hello,

I'm using Slackware x64 latest current and I have two interfaces on my server:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.111 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a6ba:a1ff:fe33:69eb prefixlen 64 scopeid 0x20<link>
inet6 ipv6_address_a::1 prefixlen 64 scopeid 0x0<global>
ether a4:ba:a1:33:69:eb txqueuelen 1000 (Ethernet)
RX packets 1215643 bytes 1552007511 (1.4 GiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 382633 bytes 145703581 (138.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.1.1.200 netmask 255.255.255.0 broadcast 10.1.1.255
inet6 fe80::a6ba:a1ff:fe33:69ed prefixlen 64 scopeid 0x20<link>
inet6 ipv6_address_b::2 prefixlen 64 scopeid 0x0<global>
ether a4:ba:a1:33:69:ed txqueuelen 1000 (Ethernet)
RX packets 6784485 bytes 754296299 (719.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5515920 bytes 628597301 (599.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

But my network actually is with netmask 192 and here is the setup from rc.inet1.conf

# IPv4 config options for eth0:
IPADDRS[0]="192.168.1.111"
USE_DHCP[0]=""
# IPv6 config options for eth0:
IP6ADDRS[0]="some_ipv6_b"
USE_SLAAC[0]=""
USE_DHCP6[0]=""
# Generic options for eth0:
DHCP_HOSTNAME[0]=""

# IPv4 config options for eth1:
IPADDRS[1]="10.1.1.200"
NETMASK[1]="255.255.255.192"
USE_DHCP[1]=""
# IPv6 config options for eth1:
IP6ADDRS[1]="some_ipv6_b"
USE_SLAAC[1]=""
USE_DHCP6[1]=""
# Generic options for eth1:
DHCP_HOSTNAME[1]=""

# IPv4 default gateway IP address:
GATEWAY="10.1.1.193"
# IPv6 default gateway IP address:
GATEWAY6="some_ipv6_b_gateway"

It's seems rc.inet1 apply 255.255.255.0 netmask not the one that I put in config file. How to resolve this issue ?latest?d=yIl2AUoC8zA latest?i=okAHzqXjCuE:Ta87azFdLis:F7zBnMy latest?i=okAHzqXjCuE:Ta87azFdLis:V_sGLiP latest?d=qj6IDK7rITs latest?i=okAHzqXjCuE:Ta87azFdLis:gIN9vFwokAHzqXjCuE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments