Binding a /22 Subnet in Ubuntu 16 not working


 
Thread Tools Search this Thread
Special Forums IP Networking Binding a /22 Subnet in Ubuntu 16 not working
# 1  
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

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question