Sponsored Content
Special Forums IP Networking Binding a /22 Subnet in Ubuntu 16 not working Post 302985261 by Bashed on Monday 7th of November 2016 03:46:40 PM
Old 11-07-2016
Binding a /22 Subnet in Ubuntu 16 not working

I'm trying to add *secondary* subnet, a /22 in Ubuntu 16 but the IPs don't ping despite proper routing at the switch level. **How do I properly bind the secondary /22 subnet (IPv4) and have these IPs ping?**

I can ping locally, but not from external. Below commands didn't work.

Code:
root@server:~# iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
root@server:~# iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT

Routing at the Cisco switch level is fine too:

Code:
interface Vlan100
 description Server xxx
 ip address xxx.xxx.16.1 255.255.252.0 secondary
 ip address xxx.xxx.105.41 255.255.255.248


/etc/network/interfaces shows something like this...

Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eno1
    iface eno1 inet static
        address xxx.xxx.105.42
        netmask 255.255.255.248
        network xxx.xxx.105.40
        broadcast xxx.xxx.105.47
        gateway xxx.xxx.105.41
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8 8.8.4.4
        dns-search mydomain.com

iface eno1 inet static
  address XXX.XXX.16.0/22

Code:
root@server:~# ifconfig |more
eno1      Link encap:Ethernet  HWaddr d4:be:d9:ed:fb:8a  
          inet addr:xxx.xxx.xxx.42  Bcast:xxx.xxx.xxx.47  Mask:255.255.255.248
          inet6 addr: fe80::d6be:d9ff:feed:fb8a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7386 errors:0 dropped:0 overruns:0 frame:0
          TX packets:457 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:478778 (478.7 KB)  TX bytes:467117 (467.1 KB)

eno1:0    Link encap:Ethernet  HWaddr d4:be:d9:ed:fb:8a  
          inet addr:xxx.xxx.16.1  Bcast:xxx.xxx.19.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 

9 More Discussions You Might Find Interesting

1. Ubuntu

Fedora and Ubuntu not working out with GRUB

I have tried befre but nothing works out proprly. I have Ubuntu I try to Install Fedora Core 1. When Fedora Cora is finished Installing It doesnt show Ubuntu on Grub. If I re-install Ubuntu and put grub on then Fedora wont show. I also have Windows 98 but that is always on the list as DOS or... (5 Replies)
Discussion started by: shade11
5 Replies

2. UNIX for Dummies Questions & Answers

VMPlayer stopped working after ubuntu updated kernel

A month or so ago Ubuntu Dapper did its auto-update thing and installed the new kernel (intrd.img-2.6.15-28-386, upgraded from intrd.img-2.6.15-27-386). I rebooted after install and immediately the xserver would not load. I quickly figured out that I could boot the old kernel from GRUB however,... (1 Reply)
Discussion started by: forchessonly
1 Replies

3. IP Networking

Migrating existing Subnet to a new subnet and changing ip addresses in UNIX

Hi, My project needs to migrate the existing Subnet (255.255.255.0) to a new subnet and change the ipaddresses (currently C class). How can I do that. I need some information. John (0 Replies)
Discussion started by: johnmarsh
0 Replies

4. IP Networking

Binding the IP address

hi all, i have an udp based application that doesn't bind to any particular address. -->while sneding the packets, i have some doubts.... 1) can the packet be transmitted with an source ip address as 0.0.0.0 2) if we select an interface based on destination ip address,... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies

5. Ubuntu

Ubuntu 10.10 LAN connection stopped working...

Well this is weird. I restarted my dual boot Win7/Ubuntu 10.10 from ubuntu to windows. Everything was working fine and windows is always connecting properly to my lan. After restarting back into Ubuntu, all of a sudden I can't connect to my network. It looks as if its trying to connect through... (15 Replies)
Discussion started by: zixzix01
15 Replies

6. UNIX for Dummies Questions & Answers

terminator shell not working after upgrading ubuntu linux

Terminator is a program that allows users to set up flexible arrangements of GNOME terminals. It has stopped working for me after upgrading to ubuntu 11.10. it does not give prompt to type anything. Just stuck with /bin/bash in the title. I removed and installed again, same... (2 Replies)
Discussion started by: analyst
2 Replies

7. UNIX for Advanced & Expert Users

Working with configure file in ubuntu

Hi, I want to add the library in my configure file. i am doing it using autoconf in ubuntu. I am new to the autoconf. Can anyone please let me know how to add the library using configure file so that it can linked to my software which I am using? Thanks in advance!!!!! (0 Replies)
Discussion started by: diehard
0 Replies

8. Shell Programming and Scripting

Cat command not working to display Mac file in Ubuntu

Hi, Recently I got a .txt file from Mac user. when I try to open it in my Ubuntu machine using cat command it is not displaying any content of file however I can see the content using vi. Anyone know How to see its content using cat as I have to process it in my shell script. Thanks in... (4 Replies)
Discussion started by: diehard
4 Replies

9. Ubuntu

Email not working on Ubuntu

Hello, I 'm getting following error in my mail log for the email i 'm sending to outside domain. Not able to figure out what is the issue. Can anyone please help me on this. wrong answer on RCPT TO "550 5.1.1 <xxxxxxx@microsoft.com>: Recipient address rejected: User unknown in local... (3 Replies)
Discussion started by: fugitive562
3 Replies
pure-authd(8)							     Pure-FTPd							     pure-authd(8)

NAME
pure-authd - External authentication agent for Pure-FTPd. SYNTAX
pure-authd [-p </path/to/pidfile>] [-u uid] [-g gid] [-B] <-s /path/to/socket> -r /program/to/run DESCRIPTION
pure-authd is a daemon that forks an authentication program, waits for an authentication reply, and feed them to an application server. pure-authd listens to a local Unix socket. A new connection to that socket should feed pure-authd the following structure : account:xxx password:xxx localhost:xxx localport:xxx peer:xxx end (replace xxx with appropriate values) . localhost, localport and peer are numeric IP addresses and ports. peer is the IP address of the remote client. These arguments are passed to the authentication program, as environment variables : AUTHD_ACCOUNT AUTHD_PASSWORD AUTHD_LOCAL_IP AUTHD_LOCAL_PORT AUTHD_REMOTE_IP AUTHD_ENCRYPTED The authentication program should take appropriate actions to fetch account info according to these arguments, and reply to the standard output a structure like the following one : auth_ok:1 uid:42 gid:21 dir:/home/j end auth_ok:xxx If xxx is 0, the user was not found (the next authentication method passed to pure-ftpd will be tried) . If xxx is -1, the user was found, but there was a fatal authentication error : user is root, password is wrong, account has expired, etc (next authentication methods will not be tried) . If xxx is 1, the user was found and successfully authenticated. uid:xxx The system uid to be assigned to that user. Must be > 0. gid:xxx The primary system gid. Must be > 0. dir:xxx The absolute path to the home directory. Can contain /./ for a chroot jail. slow_tilde_expansion:xxx (optional, default is 1) When the command 'cd ~user' is issued, it's handy to go to that user's home directory, as expected in a shell environment. But fetching account info can be an expensive operation for non-system accounts. If xxx is 0, 'cd ~user' will expand to the system user home directory. If xxx is 1, 'cd ~user' won't expand. You should use 1 in most cases with external authentication, when your FTP users don't match system users. You can also set xxx to 1 if you're using slow nss_* system authentication modules. throttling_bandwidth_ul:xxx (optional) The allocated bandwidth for uploads, in bytes per second. throttling_bandwidth_dl:xxx (optional) The allocated bandwidth for downloads, in bytes per second. user_quota_size:xxx (optional) The maximal total size for this account, in bytes. user_quota_files:xxx (optional) The maximal number of files for this account. ratio_upload:xxx (optional) radio_download:xxx (optional) The user must match a ratio_upload:ratio_download ratio. Only one authentication program is forked at a time. It must return quickly. OPTIONS
-u <uid> Have the daemon run with that uid. -g <gid> Have the daemon run with that gid. -B Fork in background (daemonization). -s </path/to/socket> Set the full path to the local Unix socket. -R </path/to/program> Set the full path to the authentication program. -h Output help information and exit. EXAMPLES
To run this program the standard way type: pure-authd -s /var/run/ftpd.sock -r /usr/bin/my-auth-program & pure-ftpd -lextauth:/var/run/ftpd.sock & /usr/bin/my-auth-program can be as simple as : #! /bin/sh echo 'auth_ok:1' echo 'uid:42' echo 'gid:21' echo 'dir:/home/j' echo 'end' AUTHORS
Frank DENIS <j at pureftpd dot org> SEE ALSO
ftp(1), pure-ftpd(8) pure-ftpwho(8) pure-mrtginfo(8) pure-uploadscript(8) pure-statsdecode(8) pure-pw(8) pure-quotacheck(8) pure-authd(8) RFC 959, RFC 2389, RFC 2228 and RFC 2428. Pure-FTPd team 1.0.36 pure-authd(8)
All times are GMT -4. The time now is 07:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy